__gshared on structs
Bernard Helyer
b.helyer at gmail.com
Fri Aug 20 17:24:38 PDT 2010
On Sun, 15 Aug 2010 17:15:19 +0200, Simen kjaeraas wrote:
> Hence my asking 'Why is this not an error?'.
Because DMD ignores invalid attributes, and almost never flags them as an
error (or even a warning!).
`shared scope immutable import foo;`
FWIW, I disagree with this behaviour -- SDC[1] will warn on no-op
attributes.
[1]:http://github.com/bhelyer/SDC
More information about the Digitalmars-d-learn
mailing list