Logical const

Simen kjaeraas simen.kjaras at gmail.com
Mon Nov 29 17:27:49 PST 2010


Simen kjaeraas <simen.kjaras at gmail.com> wrote:

>> This way only mutable references are only ever assigned to it? Then it  
>> can be marked as @trusted and used in safe code as it will never cause  
>> the program to crash?
>
> Indeed it could.

Wait. Correction: In the case when the object harboring the mutable
member is moved into read-only memory (I do not know if this might
actually happen), this ceases to be true.

-- 
Simen


More information about the Digitalmars-d mailing list