FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 631 : preproc cant handle labels to break/continue nested loops
Last modified: 2010-03-15 14:32
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
FIXED -
Pr
i
ority:
P4
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
extrapixel
Assigned To:
fry
Attachment
Type
Created
Size
Actions
simple label example
application/octet-stream
2007-10-02 05:58
164 bytes
Description
: Opened: 2007-10-02 05:56
If you use labels to break or continue nested loops, the preproc throws a
red error "Invalid type: 22".
I'm on a MBP, OSX 10.4, Processing 124 / 125
code to reproduce:
firstLoop:
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++) {
if ((i+j) % 5 != 0) continue firstLoop;
System.out.println(i + " " + j);
}
}
Additional Comment
#1 From extrapixel 2007-10-02 05:58
edit
]
simple label example
Additional Comment
#2 From fry 2007-10-11 09:13
bummer, thanks for the report.
in the meantime you'll just have to use break, or put the loops inside a
function and use return.
Additional Comment
#3 From MrFeinberg 2010-03-15 09:12
Fixed; please test and confirm.
Additional Comment
#4 From fry 2010-03-15 14:32
fixed by jdf for 0180.