lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Is there a way to pass arguments to loadstring in Lua 5.0.2 (i know that in 5.1 
it is possible). 
Here is my code I would like to run: 

class = {} 
class.x=10 
class.y=20 

f=loadstring( ' print("X:",arg.x," Y:",arg.y ) ') 
f(class) 

Best Regards 
Nick