Implicit cast to immutable

Andrej Mitrovic andrej.mitrovich at gmail.com
Wed Oct 5 17:00:00 PDT 2011


Maybe:

immutable(int[]) foo(in int[] x) pure {
   return new immutable(int[1]);
}

void main() {}

Or does this have something to do with implicit casts to immutable for
pure functions? I'm only vaguely familiar with pure..


More information about the Digitalmars-d-learn mailing list