On Tue, 31 Mar 2009 13:53:02 +0200, Trass3r <mrmoc...@gmx.de> wrote: >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."
I've got a feeling that the compile-time introspection thing is going to change, so relying on its current crippled implementation is risky.