Posted 02 February 2013 - 07:45 AM
essentially what i want to do is be be able to call a function with a string that is the variable name i want to use.
i'm doing it this way as the string will be grabbed from args ={ … }
if at all possible i'd also prefer not to have to set it up as a dictionary
i'm doing it this way as the string will be grabbed from args ={ … }
a = 1
function f(var)
--some how print 1 instead of a
end
f("a")
if at all possible i'd also prefer not to have to set it up as a dictionary