On Sat, 06 Jun 2015 12:36:09 +0000, Marc Schütz wrote: > `const auto` isn't contradictory. It's simply two storage classes, one > of which is the default.
but it is! ok, how about `shared auto i = 42;`? what the $#^# `auto` means here? what is that "default storage class" then, and why it doesn't apply here? > Besides, there's not much sense in doing experiments with DMD to find > out "the true nature" of auto. DMD is clearly inconsistent, > as seen from your observation about foreach(). ok, but what i should consult then? specs? but specs clearly allows `const immutable shared auto scope inout __gshared int i = 42;`. yes, specs clearly says that `auto` is a storage class. specs also allowing `auto auto auto auto auto int i = 42;`. what should i check to see what is *really* allowed, why two storage classes allowed with one combination and not allowed with another?
signature.asc
Description: PGP signature
