[dmd-concurrency] draft 7
Fawzi Mohamed
fawzi at gmx.ch
Tue Feb 2 05:58:55 PST 2010
On 2-feb-10, at 13:20, Fawzi Mohamed wrote:
>
> On 2-feb-10, at 07:19, Robert Jacques wrote:
>
>> On Tue, 02 Feb 2010 01:04:37 -0500, Sean Kelly <sean at invisibleduck.org
>> > wrote:
>>> Sadly, volatile is deprecated in D 2.0. You pretty much have to
>>> use inline asm and rely on the fact that Walter has said D
>>> compilers should never optimize in or across asm code.
>>
>> Well, to the best of my knowledge volatile has never been
>> implemented in D 1.0, which is one of the reason's it was dropped
>> from D 2.0.
>
> that is very sad, I did find volatile very useful, I was
> interpreting it as something like a way to switch off the
> optimizations in a code segment, so that one can have some kind of
> portable asm.
> I find it very useful together with barriers...
... does it mean that my code is incorrect in general (in D 1.0)?
More information about the dmd-concurrency
mailing list