volatile, shared in LDC

Kagamin via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Sun May 25 03:07:29 PDT 2014


One of the solution can be
template Volatile(T)
{
   alias Volatile = __gdc_volatile__(T);
}

And each compiler defines this template in a way which suits it 
best, because stock DMD frontend can't accept arbitrary keywords, 
so you need to hide them behind some common syntax.


More information about the digitalmars-d-ldc mailing list