Code behaves incorrectly if it is compiled in std.functional
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Sat Jun 6 08:12:38 PDT 2015
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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150606/20f66618/attachment.sig>
More information about the Digitalmars-d
mailing list