DMD 1.019 and 2.003 releases

Walter Bright newshound1 at digitalmars.com
Mon Jul 23 16:51:47 PDT 2007


Carlos Santander wrote:
> Walter Bright escribió:
>>
>> http://www.digitalmars.com/d/1.0/changelog.html
>> http://ftp.digitalmars.com/dmd.1.019.zip
>>
>> http://www.digitalmars.com/d/changelog.html
>> http://ftp.digitalmars.com/dmd.2.003.zip
> 
> How can we check specific overloads with __traits? For example,
> 
> class A
> {
>     abstract void foo();
>     int foo(int i) { return i; }
> }
> 
> void main ()
> {
>     auto isvirtual = __traits(isAbstractFunction, A.foo); // what is it?
> }

You'll need to split them apart with getVirtualFunctions, or cast the A.foo.

> BTW, the documentation for __traits has isVirtualFunction in the example 
> for isAbstractFunction.

Fixed.



More information about the Digitalmars-d-announce mailing list