Go Down

Topic: variable data type checking on compile (Read 649 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

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131