Index a parameter tuple with a run-time index

Meta via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jan 15 12:50:33 PST 2016


On Friday, 15 January 2016 at 20:42:47 UTC, Nordlöw wrote:
> How do I index a function parameter tuple with a run-time index?

I believe it's impossible because a parameter tuple is not a 
runtime entity. If it was an expression tuple (a compile-time 
tuple of only values, no types or symbols) and all of the values 
had a common base type, you could put it in an array and index 
that.


More information about the Digitalmars-d-learn mailing list