Immutable

Moritz Warning moritzwarning at web.de
Mon Oct 20 18:27:35 PDT 2008


On Tue, 21 Oct 2008 10:06:03 +0900, Bill Baxter wrote:

> 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

I think it's a bug, should be fixed easily.



More information about the Digitalmars-d mailing list