Can D do some sort of automatic template to "dynamic template" wrapping

Adam D. Ruppe via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 19 11:36:47 PDT 2015


On Saturday, 19 September 2015 at 17:46:27 UTC, Adam wrote:
> I doubt anyone would read all so I'll stop now ;)

What you're asking is actually pretty easy. You can just write a 
function that loops to form the object list yourself or you could 
make the template add a static module constructor that adds 
itself to the call list. Then you tag your object with its 
typeinfo and use that as index into the list.


More information about the Digitalmars-d mailing list