Quote:
Originally Posted by TurboPascal7
Now please explain me the reason why we should do something to prevent this kind of behavior if this assignment happens on the last line.
|
Because in that the case the problem is more than just the unused variable (that's just an aspect I mentioned to illustrate that the script was incomplete). The issue is that the intended return value is not clear.
Quote:
Originally Posted by Sapo84
instead of commenting just use a return last in the place you need to test the output.
|
Yes, I was about to make that point myself.