thoughts on immutability in D

Walter Bright newshound2 at digitalmars.com
Sat Sep 24 23:07:24 PDT 2011


On 9/24/2011 11:00 PM, dame wrote:
> Walter Bright wrote:
>> On 9/24/2011 6:03 AM, Peter Alexander wrote:
>>> I only use const/immutable for concurrency. Nothing else.
>>
>> How do you avoid race conditions when setting logical const values?
>
> Is that important?

If you have a concurrent data structure, it's critical.


More information about the Digitalmars-d mailing list