Shouldn't __traits return Tuples?

Trass3r mrmocool at gmx.de
Tue Mar 31 04:53:02 PDT 2009


Max Samukha schrieb:
>> So it is a tuple although the docs tell us it's an array?
>>
> 
> Yeah, __traits returns expressions of various types depending on the
> Id. In case of getVirtualFunctions, it's a tuple expression. You may
> want to look through traits.c in dmd sources to see what's going on.
> 

So the docs are incorrect:
"getVirtualFunctions
The result is an array of the virtual overloads of that function."



More information about the Digitalmars-d mailing list