Thread: Avisynth+
View Single Post
Old 5th November 2016, 17:09   #2578  |  Link
Stephen R. Savage
Registered User
 
Stephen R. Savage's Avatar
 
Join Date: Nov 2009
Posts: 327
Quote:
Originally Posted by ajp_anton View Post
But as mentioned, you can already create those conflicts with variable names. What makes array-name conflicts any different? Either you ignore the problem (allow conflicts), or you do something about it (throw error when conflicts happen, or require ()-brackets for functions), but you do the same thing with variable names and array names (aren't arrays also some kind of "variables"?).

Though I agree that []-brackets are better for arrays.
There are no function pointers, so I believe AVS will use the presence of the parentheses token to identify a function name instead of a variable.
Stephen R. Savage is offline