logo       

RE: standard for loop: msg#00203

lang.groovy.user

Subject: RE: standard for loop



> -----Original Message-----
> From: Guillaume Laforge
> [mailto:glaforge-yCVjj/EcxBJg9hUCZPvPmw@xxxxxxxxxxxxxxxx]
> Sent: Tuesday, November 30, 2004 10:51 AM
> To: user-i9PBDF1N6cxnkHa44VUL00B+6BGkLq7r@xxxxxxxxxxxxxxxx
> Subject: Re: [groovy-user] standard for loop
>
> Steven Buroff wrote:
> > In addition, groovy is gratuitously incompatible with java such as:
> >
> > for(x in y){}
> >
> > instead of
> >
> > for(x : y){}
>
> Groovy supports both.

Oops - sorry. I didn't see this in the documentation.
However, you're right. It does work. Thanks for the info.

Steve

>
> --
> Guillaume Laforge
> http://glaforge.free.fr/weblog
>




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise