Code behaves incorrectly if it is compiled in std.functional

via Digitalmars-d digitalmars-d at puremagic.com
Mon Jun 8 02:37:20 PDT 2015


On Monday, 8 June 2015 at 09:33:56 UTC, ketmar wrote:
> On Mon, 08 Jun 2015 09:27:34 +0000, Marc Schütz wrote:
>
>>> ergo, `auto` is not a storage class, but type placeholder.
>> 
>> No.
>
> and it's not a storage class too. `foreach (auto i; 0..42)` 
> doesn't work,
> white `foreach (immutable i; 0..42)` works ok.

That's a bug ;-)


More information about the Digitalmars-d mailing list