Generate toString() method at compile time

Adam D. Ruppe destructionator at gmail.com
Wed Mar 26 07:56:39 PDT 2014


On Wednesday, 26 March 2014 at 14:53:55 UTC, Ary Borenszweig 
wrote:
> Thanks! That's pretty neat. It seems I was missing "tupleof".

Yea, there's other options too like __traits(derivedMembers) 
if(!is(__traits(getMember...)) == function) and stuff like that, 
filtering like bearophile said, I just think tupleof is the 
easiest option for this.


More information about the Digitalmars-d-learn mailing list