Go Down

Topic: variable data type checking on compile (Read 534 times) previous topic - next topic



It would be great if the compiler checked if there were any erroneous data types.  For example, it should not allow you to compile when you have an assignment such as :

int time = 50000;


because when running this would cause an error when it got the delay function.

Currently when you compile (in Arduino-0010), it makes no indication of this error and the uploaded program ends up hanging when that variable is called ( ie. program gets stuck later at delay(number) ).  This can be a problem because if the delay function isn't called till late in the program, there is no indication that there will be a problem.

Go Up