Generating members from parameter tuple

Dicebot public at dicebot.lv
Mon Aug 19 10:08:59 PDT 2013


On Monday, 19 August 2013 at 17:03:18 UTC, Brad Anderson wrote:
> Ok, that helps me understand how to do it with recursion and 
> mixin templates.  I ended up doing it like this: 
> http://dpaste.dzfl.pl/14864b1b with help from Jakob Ovrum in 
> IRC.

Yes, if you can stick to semantics close to built-in value 
tuples, it is a better solution. My snippet is a generic approach 
for any "generate some code for every member of the tuple" task 
but it does not scale good in terms of template bloat.


More information about the Digitalmars-d-learn mailing list