wonkey_monkey
25th July 2015, 23:08
I've found some inconsistencies happening with Avisynth 2.6.0 when I accidentally miss out a . between keywords.
I was expecting none of the below to work, since I have omitted a . between the crop and the info, but they all work with inconsistent results:
version.crop(0,0,0,0)info # works as if I had typed .info
return version.crop(0,0,0,0)info # returns version WITHOUT info
q=version.crop(0,0,0,0)info # error: 'I don't know what "info" means'
blankclip
q=version.crop(0,0,0,0)info # applies info to the implicit last blankclip, but not to q
EDIT: All of the above are explained if the parser is imagining an implicit newline between the crop(...) and the info. Maybe that's what was intended, though I'd have thought an error in all cases would be more helpful.
I was expecting none of the below to work, since I have omitted a . between the crop and the info, but they all work with inconsistent results:
version.crop(0,0,0,0)info # works as if I had typed .info
return version.crop(0,0,0,0)info # returns version WITHOUT info
q=version.crop(0,0,0,0)info # error: 'I don't know what "info" means'
blankclip
q=version.crop(0,0,0,0)info # applies info to the implicit last blankclip, but not to q
EDIT: All of the above are explained if the parser is imagining an implicit newline between the crop(...) and the info. Maybe that's what was intended, though I'd have thought an error in all cases would be more helpful.