lua-users home
lua-l archive

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


On Oct 17, 2002 at 04:26 -0200, Luiz Henrique de Figueiredo wrote:
> >Basically we are:
> >1) Getting a pre-compiled buffer area(hashed via an id)
> >2) running it using lua_dobuffer
> >3) In the script it may call out to C function which
> >   will get another piece of pre-compiled code which get executed
> >(using the same L state passed to the C function)
> >4) returns to the main 'calling script'

As a workaround (not really addressing any underlying problem), why
don't you associate a lua function with each ID, instead of a buffer?
So you'd use lua_call instead of lua_dobuffer to run your scripts.

-- 
Thatcher Ulrich
http://tulrich.com