[Swift-devel] New syntax for appending to arrays

Yadu Nand yadudoc1729 at gmail.com
Wed Jun 29 08:28:51 CDT 2011


Hi Mihael,

> foreach dummy in [1..2] {
>  int a[];
>  a += 1; a += 2;
>  foreach v, k in a {
>   trace(k + 1);
>  }
> }

Thanks for pointing this out. I didn't consider cases where
append isn't a top-level-statement. Making changes to the
parse to account for this. My bad.

-- 
Thanks and Regards,
Yadu Nand B



More information about the Swift-devel mailing list