DIP62: Volatile type qualifier for unoptimizable variables in embedded programming

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Thu Jul 17 12:21:24 PDT 2014


On 7/17/14, 12:15 PM, Iain Buclaw via Digitalmars-d wrote:
> On 17 July 2014 17:16, Sean Kelly via Digitalmars-d
> <digitalmars-d at puremagic.com> wrote:
>> We had the volatile statement as a compiler barrier in D1. Why not basically
>> that instead of a type qualifier?  We pretty much need it back for atomics
>> anyway.
>
> I don't recall volatile statements ever working properly, or at least
> working in an agreed way.

And that goes for volatile in C and C++ as well. -- Andrei




More information about the Digitalmars-d mailing list