foreach syntax

Namespace rswhite4 at googlemail.com
Fri Jun 29 11:04:14 PDT 2012


On Friday, 29 June 2012 at 17:55:57 UTC, Timon Gehr wrote:
> On 06/29/2012 07:50 PM, Namespace wrote:
>>> You'll also have to change the line that says 
>>> expect(TOKsemicolon);
>>
>> In what? comment out?
>
> Looking at some other parts of the parse.c source reveals that
>
> if(token.value == TOKin) nextToken(); else expect(TOKsemicolon);
>
> might get you going.

I think i'm to stupid for that, sry. I comment out "check" (just 
for testing) but then i get much more errors if i try to compile 
"foreach (val in vals) {".



More information about the Digitalmars-d-learn mailing list