DMD 1.029 and 2.013 releases
Lars Ivar Igesund
larsivar at igesund.net
Sat Apr 26 03:34:45 PDT 2008
Walter Bright wrote:
> Sean Kelly wrote:
>> Walter Bright wrote:
>>> Sean Kelly wrote:
>>>> I suppose the obvious question here is: what if I want to create a
>>>> mutex in D?
>>>
>>> Why do you need volatile for that?
>>
>> To restrict compiler optimizations performed on the code.
>
> The optimizer won't move global or pointer references across a function
> call boundary.
Is that true for all compiler's or only DigitalMars ones?
--
Lars Ivar Igesund
blog at http://larsivi.net
DSource, #d.tango & #D: larsivi
Dancing the Tango
More information about the Digitalmars-d-announce
mailing list