Bug or feature storage class alias

Freddy via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 26 13:27:01 PDT 2015


Is this a bug or a feature
---
import std.stdio;

int global;

alias cGlobal = const global;
alias sGlobal = shared global;

void main()
{
     global = 5;
     writeln(cGlobal);
     global = 7;
     writeln(sGlobal);
}
---


More information about the Digitalmars-d mailing list