FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 869 : methods named color cause compile error
Last modified: 2008-08-08 13:18
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
INVALID -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
tex
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2008-08-08 13:12
revision: 142
os: mac osx
code:
void setup(){
bla Bla = new bla();
bla.color();
}
details:
methods named color in other classes cause an error because of the
processing precompiler, guess its because color is used as primitive type
in processing.
void draw(){
}
class bla{
void color(){}
}
Additional Comment
#1 From fry 2008-08-08 13:18
that's because "color" is a reserved word in the processing language/syntax.
you'll get the same thing if you had a method called public(), void(), or
class().