IonicWind Software

IWBasic => General Questions => Topic started by: Brian on May 11, 2011, 02:03:30 PM

Title: Non-used variables
Post by: Brian on May 11, 2011, 02:03:30 PM
Hi,

I was under the impression, and I'm sure I have seen a message at one time,
that if you defined a variable, and subsequently it was never used in your code,
that you got a message about the fact when compiling

Am I right? (or hopelessly wrong!)

Would be a nice feature. I've just found four variables in my program which
were unused, but had to do a Find to check

Brian
Title: Re: Non-used variables
Post by: Bruce Peaslee on May 12, 2011, 09:56:15 AM
At one point that was so, at least that's how I remember it.
Title: Re: Non-used variables
Post by: mrainey on May 12, 2011, 07:40:00 PM
Emergence displays "Warning: unreferenced local variable: variable name"
Title: Re: Non-used variables
Post by: Brian on May 13, 2011, 01:47:29 AM
That's it, Mike!

I knew I had seen it somewhere. Would be a nice feature to have
in IWB2, as well

Brian