Pages: [1]   Go Down
Author Topic: variable data type checking on compile  (Read 357 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

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;

delay(number);

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.



Logged

Pages: [1]   Go Up
Jump to: