DMD 1.019 and 2.003 releases
Carlos Santander
csantander619 at gmail.com
Tue Jul 24 20:36:33 PDT 2007
Walter Bright escribió:
> Carlos Santander wrote:
>> 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.
>
As for getVirtualFunctions, I'm guessing abstract foo would not be virtual, and
the other one would. Am I right?
As for casting, cast A.foo to what?
--
Carlos Santander Bernal
More information about the Digitalmars-d-announce
mailing list