Immutable variadic lambda

bearophile bearophileHUGS at lycos.com
Sat Oct 12 12:22:57 PDT 2013


This program causes me a crash, do you know if it's a problem of 
mine, a known bug, or an unknown one?


void main() {
     static foo = (int[] x...) => 0;
     foo();
}


A similar problem:

import std.typecons: Tuple;
void main() {
     alias Foo = Tuple!(int);
     static bar = (Foo x) => 0;
     bar(Foo());
}

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list