Access template parameters at runtime

David Nadlinger see at klickverbot.at
Fri Aug 10 08:26:50 PDT 2012


On Friday, 10 August 2012 at 14:42:24 UTC, Henning Pohl wrote:
> That is what I was trying first, but I could not make it work. 
> Maybe you can show me how it's done?

Just use the compiler tuple inside an array literal, like this: 
[integers]. It will auto-expand, just when passing it to a method.

David


More information about the Digitalmars-d mailing list