Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
4th December 2014, 04:06 | #1 | Link |
Registered User
Join Date: Jul 2003
Location: India
Posts: 890
|
Naming parameters in script
Avisynth accepts in script calling functions with named parameters also without naming them as long as they are in correct order. This however creates problem when arrays are used. Incidentally arrays can not be named. In the following:
functionname(width = 720, height = 480, x= 90, y = 100) can also be called as functionname(720,480,90,100) if the order of parameter named correspond to that actually used in the function code. incase of "fname", "ci*[width]i[height]i[x]i[y]i) if script call is fname(1,2,3,4,720,480,x=90,y=100) it is not clear whether 720 and 480 are taken in to i+ array or assigned to width and height as was intended. This scheme is error prone. I suggest that in 2.6 it may be made compulsory to make the names of named arguments be given in script. Should it not be possible to name even array parameters such as [table]i+ ? Vapoursynth does that and appears to be good. |
Thread Tools | Search this Thread |
Display Modes | |
|
|