On 3/5/02 8:55 PM, "James Strachan" <[EMAIL PROTECTED]> wrote:

> To help avoid repetive code of the form...
> 
> for ( Iterator iter = something.iterator(); iter.hasNext(); ) {
>   Foo foo = (Foo) iter.next();
>   foo.bar();
> }
> 
> maybe introduce a C#-like foreach statement...
> 
> foreach( Foo foo in something.iterator() ) {
>   foo.bar();
> }
> 
> 
> Just thinking aloud here (as always ;-). Thoughts?

We'd prefer if you'd refer to it as a "Velocity-like foreach statement"

;)


-- 
Geir Magnusson Jr.                                     [EMAIL PROTECTED]
System and Software Consulting
Be a giant.  Take giant steps.  Do giant things...


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to