immutable, const, enum

Derek Parnell derek at psych.ward
Tue Apr 28 16:50:05 PDT 2009


On Tue, 28 Apr 2009 23:39:14 +0000 (UTC), BCS wrote:

> Reply to Derek,
> 
>> What has surprised me is that immutability is *not* guaranteed.

 
> The language has asm blocks can can call C. The only things it can guarantee 
> are the same things the OS can guarantee.

Oh, I agree. It is just that the documentation is pretty adamant that
"immutability" means that the data WILL NOT change. It gives the impression
that there is compiler support to ensure that this is axiomatic rather than
just a convention.

-- 
Derek Parnell
Melbourne, Australia
skype: derek.j.parnell



More information about the Digitalmars-d mailing list