lua-users home
lua-l archive

Re: Limited dostring()?

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


--- Markus Huber <pulse@evolution.org> wrote:
> Hi Lua Fans,
> 
> why doesn't work the following example?
> 
> Name='Test'
> function Test_Version() return 001 end
> print(dostring('return '..Name..'_Version()'))
> 
> Prints: userdata(0): 00000000
> But I need: 1
Not the change to the print(dostring(... line.
Cheers,
Eric
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

AltStyle によって変換されたページ (->オリジナル) /