parameter pack to inputRange

Dicebot via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun May 8 15:37:44 PDT 2016


On Sunday, 8 May 2016 at 14:11:31 UTC, Ali Çehreli wrote:
>         E front() {
>             final switch (index) {
>                 /* static */ foreach (i, arg; Args) {
>                     case i:
>                         return arg;
>                 }
>             }
>         }

AFAIK, this will do funny things with referencing stack if 
arguments are variables and not literals.


More information about the Digitalmars-d-learn mailing list