Thread: Avisynth+
View Single Post
Old 6th November 2013, 12:03   #229  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by TurboPascal7 View Post
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 View Post
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.
__________________
GScript and GRunT - complex Avisynth scripting made easier
Gavino is offline