Code behaves incorrectly if it is compiled in std.functional

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 5 23:05:46 PDT 2015


On Fri, 05 Jun 2015 18:35:49 +0000, Marc Schütz wrote:

> On Friday, 5 June 2015 at 17:50:55 UTC, ketmar wrote:
>> `const int` works, so i can't see why `auto auto` is failing.
> 
> Wrong analogy. Try `const const`, and it will fail with the same error
> as `auto auto`: "redundant attribute".

nope. in `auto auto` one `auto` is storage type, and another `auto` is a 
type placeholder. see, `const auto` works, so `auto` can play role of a 
type placeholder. so `auto auto` should be accepted, if you insists that 
it can play a role of storage class.
-------------- 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/5a3995ed/attachment.sig>


More information about the Digitalmars-d mailing list