IonicWind Software

IWBasic => The Roundtable => Topic started by: Brian on December 07, 2018, 07:38:22 AM

Title: Defining variables
Post by: Brian on December 07, 2018, 07:38:22 AM
Never noticed before, but if you predefine a variable, say, INT test, and never use it in your program, it will be flagged up as an unreferenced variable at compile time

But if you define it as INT test=0, and still never use it, there is no unreferenced warning message, probably because the variable already holds a value at compile time

Obviously, autodefine needs to be set to "off"

Always something new to learn!

Brian