"for" statement issue

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Fri Oct 21 06:33:26 PDT 2016


On Friday, 21 October 2016 at 13:18:19 UTC, RazvanN wrote:
> On Friday, 21 October 2016 at 12:34:58 UTC, Andrei Alexandrescu 
> wrote:
>> [...]
>
> I am the one who raised the question. I am n00b when it comes 
> to D language (I just started reading about it a couple of days 
> ago) and I tried the above mentioned code expecting that either 
> the variables j and d get incremented accordingly or at least
> I would get a compilation error. Instead, the program compiles 
> and when run it sticks
> into an infinite loop. I haven't read anything about lambda 
> functions in D, but the
> current outcome is very confusing for a beginner like myself.
>
> Thanks,
> RazvanN
Ah.
It does create a lambda?
Hmm that should not happen.

I agree this is confusing and unwanted.
Please feel free to post this to bugzilla.

I will take a look next month. If nobody resolves it before then.




More information about the Digitalmars-d mailing list