View Single Post
Old 19th December 2009, 17:48   #23  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Thanks, StainlessS. Interesting example.

Although it doesn't actually seem to be a problem, you could eliminate the recursive call to GScript itself by defining the entire function within GScript, ie
Code:
GScript("""
Function __FPS_23_to_24__(clip Last)
{
  ...
}
""")
Of course, the function itself would still be recursive.
I wondered if that recursion could be easily removed by using a 'while' loop, but I think your algorithm is easier to express recursively, as you have done.
Gavino is offline   Reply With Quote