View Single Post
Old 4th December 2014, 19:00   #3  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by davidhorman View Post
... with (what I assume is) the current procedure as fallback: if an array is expected next by the plugin, and an element of the correct type is found, place it in the array and continue reading parameters into the array until a named parameter is given.
I believe in the current procedure it will also stop reading if an argument incompatible with the array base type is found (whether named or not). This allows things like foo(1,2,3,true) when calling a function with a parameter type list of "i*b".

I agree it's the responsibility of the plugin writer to choose a parameter list that is unambiguously interpreted.
__________________
GScript and GRunT - complex Avisynth scripting made easier
Gavino is offline   Reply With Quote