DIP62: Volatile type qualifier for unoptimizable variables in embedded programming

Byron Heads via Digitalmars-d digitalmars-d at puremagic.com
Thu Jul 17 07:01:27 PDT 2014


On Wed, 16 Jul 2014 11:49:21 -0700, Walter Bright wrote:

> 
> I'll add that if it turns out we can't do a wrapper because of some
> limitations/bugs in D's expressiveness, that is the problem with D we
> need to fix, not adding another type modifier.
> 
> It all comes down to leverage. Making user defined types more capable
> has far,
> far more productive leverage than welding specifics into the compiler.

A Volatile(T) in stdlib seems to make a lot of sense, I am also wondering 
if the implementation of shared should be done the same way (if it does 
already then ignore), just use the compile to enforce shared and have it 
rewrite it as Shared(T).




More information about the Digitalmars-d mailing list