|
Author |
Topic: foreach? (Read 525 times) |
|
rgovostes+ Guest
|
foreach?
« on: Apr 3rd, 2004, 12:42am » |
|
Java doesn't seem to have a 'foreach' found in many other languages - perhaps Processing could add one? There are several free Java implementations online, but I wouldn't know where to begin using one in Processing.
|
|
|
|
fry
|
Re: foreach?
« Reply #1 on: Apr 3rd, 2004, 1:53am » |
|
yeah, the java 1.5 spec finally has syntax for a foreach loop, so we'd like to get that in there someday (even to compile to 1.1 with it). we had hoped the guy doing the preprocessor/compiler work was gonna be able to get to it, but he ran out of time (the preproc stuff turned out to be a worse mess than hoped...) but hopefully we'll get a chance to integrate it sometime soon. i don't know how many times i've written the following in the past few months: for (int i = 0; i < entries.length; i++) { Entry e = entries[i]; } and would love to avoid it.
|
|
|
|
REAS
|
Re: foreach?
« Reply #2 on: Apr 14th, 2004, 8:25am » |
|
hear, hear.
|
|
|
|
|