[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Limited dostring()?
- From: "Thatcher Ulrich" <tu@...>
- Date: Tue, 8 Jan 2002 19:26:33 -0500
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