Const/Shared/Immutable anomalies in D that should be fixed

Mehrdad wfunction at hotmail.com
Sun May 6 07:37:48 PDT 2012


I think you misread my question.

I was asking about declaring a STRUCT as const, not a VARIABLE as
const.

On Sunday, 6 May 2012 at 13:09:06 UTC, deadalnix wrote:
> Le 03/05/2012 08:00, Mehrdad a écrit :
>> Also, what exactly is the difference between declaring a 
>> struct as
>> immutable or as const? Aren't they unmodifiable either way?
>
> Const can point to mutable or immutable data.
>
> const are thread local and immutable aren't.


More information about the Digitalmars-d mailing list