Re: 4.0 Beta 2 Due Out on Tuesday, got your bug reports in?

new topic     » goto parent     » topic index » view thread      » older message » newer message
kenneth said...

The "variable not used" bug reported by CrisB was ambiguously entered into the bug reports. The warning is properly triggered since the declared variable never appears to the right of an equals sign. The bug is that "without warning" fails to suppress the post-execution warning massage.

Yeah, I realized that too. I'll tidy up the bug report to clarify it.

However, have we really got a bug here?

The not-used checking is done at the end of each block using whatever warning settings are prevailing at the time. In other words, the warning settings are linked to a block of code and not individual declarations.

In this case, the variable is scoped to the file, and the file's block is checked after the all the file has been parsed. The problem with this particular file is not that the without warning is failing, but that the last line in the module is with warning. Meaning that when the not-used checking is being performed for this file's block, the warnings have been explicitly set to check for unused variables. Now, if that last line is removed, you won't get the message.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu