__gshared immutable array of immutable elements

Nicolas Sicard dransic at gmail.com
Tue Nov 12 10:49:20 PST 2013


In this declaration (tango.io.Console.d from Tango2):

__gshared immutable immutable(char)[] Eol = "\r\n";

Aren't the two `immutable` keywords redundant? Why would 
`__gshared` be necessary for such an immutable type?

Thanks


More information about the Digitalmars-d-learn mailing list