lua-users home
lua-l archive

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


> > - do I use blocks (the code in the function can get large and 
> use a whole
> >   pile of Lua calls)
> 
> You should not use blocks in code like that. Every function called by Lua
> is automatically enclosed in a block. Usually, you need to use explicit
> blocks only when C calls Lua in a loop, because then results can 
> accumulate
> and eventually the stack may fill up.

oh, good to know. I was wondering if I risked overflows, because I
didn't use blocks in such functions.
Thanks for your help

-- 
Lyrian