vampiredom
31st December 2011, 03:07
Many other scripting languages allow referenced variables; so that a function can modify an existing variable – or a large variable can be passed without needing to duplicate it in memory. For example:
For a case where I'd like to modify the value of "foo", it would be convenient to be able to write [something like]:
FunctionName(\foo)
instead of:
foo = FunctionName(foo)
Is there any such way to do something like in AviSynth? I doubt there is, but I figured I'd ask the question here to see if anybody knows any way by which a function can alter a pre-defined variable.
For a case where I'd like to modify the value of "foo", it would be convenient to be able to write [something like]:
FunctionName(\foo)
instead of:
foo = FunctionName(foo)
Is there any such way to do something like in AviSynth? I doubt there is, but I figured I'd ask the question here to see if anybody knows any way by which a function can alter a pre-defined variable.