lua-users home
lua-l archive

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


On Jan 09, 2002 at 01:14 +0100, Markus Huber wrote:
> Hi Lua Fans,
> 
>    why doesn't work the following example?
> 
>    Name='Test'
>    function Test_Version() return 001 end
>    print(dostring(Name..'_Version()'))
> 
>     Prints: userdata(0): 00000000
> But I need: 1

Try:

print(dostring('return '..Name.."_Version()"))

-- 
Thatcher Ulrich <tu@tulrich.com>
http://tulrich.com