What is the difference between...

Sean Kelly sean at f4.ca
Fri Sep 7 07:10:38 PDT 2007


Daniel Keep wrote:
> 
>> (2) void f(const(int*) x)
> 
> Ok, now you've got a mutable read-only view: the bits of 'x' can be
> changed, but the data referenced by x cannot.

I thought that's what 'final' was for.  For the above, I'd expect the 
reference and the data to which it refers to both be immutable through 
x.  Is this not right?


Sean



More information about the Digitalmars-d mailing list