[Swift-devel] file declaration inside foreach

Ben Clifford benc at hawaga.org.uk
Wed Apr 25 01:26:31 CDT 2007



On Tue, 24 Apr 2007, Mihael Hategan wrote:

> It's been hacked around for a while now:

> int[] r = [1:2:1];
> for i in r {
> }

Do you mean foreach there?

If not, then that doesn't correspond with my view of the history at all - 
the VDL.g grammar lost its production rule for for(;;) in r375, and 
immediately before that it looked like:

   "for" LPAREN e1=assignStat SEMI e2=expression SEMI e3=assignStat RPAREN 

which is  for(a;b;c)  syntax.

-- 



More information about the Swift-devel mailing list