[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: calling lua scripts from lua scripts
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 8 May 2003 23:38:34 -0300
>How can i execute a simple piece of lua code from another lua script?
I'm not sure what you mean. If script A wants to run script B, try dofile"B"
inside A. If A wants to run a function defined in B, first dofile"B" before
or while running A and then call the function.
If you want to run Lua code stored in a string, use loadstring(s)() (or
dostring(s), in Lua 4.0).
--lhf