This method has a constructor name

edited September 2016 in Programming Questions

Hi,

I've got a warning on the first line of this program, saying vraiOuFaux is a contructor name.

boolean vraiOuFaux(boolean a, boolean b, boolean c){ return true; }

I don't use classes. If you want to test, all you have to do is copy this function. If you rename the function, the warning vanishes.

I'm using Processing 3.2.1 on Windows. It is a known bug ?

Thanks, Samuel

Answers

  • Answer ✓

    It is probably because vraiOuFaux is also the name of your sketch. This is not a bug, Processing wraps your code into a class named after the sketch.

Sign In or Register to comment.