[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Load Compiled Script?
- From: "Jim Jones" <jjones@...>
- Date: Tue, 29 Apr 2003 20:16:46 -0500
Luiz -
The script also contains some logic outside of the function definitions,
and this is the code that I want to avoid executing.
The "do return end" is what I needed.
Jim
----- Original Message -----
From: "Luiz Henrique de Figueiredo" <lhf@tecgraf.puc-rio.br>
To: "Multiple recipients of list" <lua-l@tecgraf.puc-rio.br>
Sent: Tuesday, April 29, 2003 7:42 PM
Subject: Re: Load Compiled Script?
> >My end users want to be able to specify which functions to call, and
> >what order.
>
> Defining functions *is* executing the code. Your Lua program can be just
> function definitions and so when lua_dofile runs the file the only side
> effects are these definitions. Or am I missing something?
> --lhf