enumerating member offsetofs via foreach over members-tuple

bearophile bearophileHUGS at lycos.com
Fri Nov 14 13:23:02 PST 2008


Denis Koroskin:
> First of is described here:  
> http://d.puremagic.com/issues/show_bug.cgi?id=2454

Just a note, the result is correct if you replace this line:
writefln(typeof(m).stringof);
With:
writefln(typeid(typeof(m)));

Bye,
bearophile



More information about the Digitalmars-d mailing list