Bug 869 : methods named color cause compile error
Last modified: 2008-08-08 13:18




Status:
RESOLVED
Resolution:
INVALID -
Priority:
P2
Severity:
normal

 

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().