processing / processing-experimental

Experimental Mode for the PDE
72 stars 25 forks source link

boolean problem #73

Closed knupel closed 10 years ago

knupel commented 10 years ago

When you write a boolean var at the top, PDE indicate an error "Syntax error on "boolean", new expected", but not with a int var or when the void setup() is a the top, like this capture decran 2014-06-25 a 15 26 47 capture decran 2014-06-25 a 15 27 06 capture decran 2014-06-25 a 15 26 25

Manindra29 commented 10 years ago

Fixed with https://github.com/processing/processing/commit/fdf2e3203bd6c33cdf97675209aa2985d39776c3

It's expected that the user begins his sketch with void setup() before adding other methods. Internally code preprocessing is performed based on the presence/absence of setup() method, hence the minor bug.