[Issue 1723] __traits(getVirtualFunctions) on a non-function fails badly
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 27 05:35:10 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1723
------- Comment #2 from dhasenan at gmail.com 2008-02-27 07:35 -------
The obvious workaround:
static if (__traits(compiles, (__traits(getVirtualFunctions, T, name))))
{
foreach (i, method; __traits(getVirtualFunctions, T, name)) {}
}
It's an ugly way to work around compiler bugs, though.
--
More information about the Digitalmars-d-bugs
mailing list