[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 21:27:22 -0500
I think Curt is right. Preappending a "do return end" will skip all of my
function definitions. Hmmm, so I guess I am back to my original problem.
How do I load the compiled source and definitions without execution.
I really appreciate everyone's help.
Jim
----- Original Message -----
From: "Curt Carpenter" <curtc@microsoft.com>
To: "Multiple recipients of list" <lua-l@tecgraf.puc-rio.br>
Sent: Tuesday, April 29, 2003 9:12 PM
Subject: RE: Load Compiled Script?
> But, um, then the functions don't even get defined. And when would you
> expect the logic outside the function definitions to ever get invoked?
>
> Or am I now the one missing something?
>
> -----Original Message-----
> From: owner-lua-l@tecgraf.puc-rio.br
> [mailto:owner-lua-l@tecgraf.puc-rio.br] On Behalf Of Jim Jones
> Sent: Tuesday, April 29, 2003 6:17 PM
> To: Multiple recipients of list
>
> 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
>