Immutable

Bill Baxter wbaxter at gmail.com
Mon Oct 20 18:06:03 PDT 2008


This works now in D2!

-----
import std.stdio;
void main() {
    immutable(char)[] bar;
    writefln("bar is ", typeof(bar).stringof);
}
----

But it still prints "bar is invariant(char)[]".

Will the internal names change too in the next release?

--bb



More information about the Digitalmars-d mailing list