lua-users home
lua-l archive

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


Roberto Ierusalimschy wrote:

> They are on the top of the stack (Lua 4.0).
> ...
> Right. The pop removes the index, the step, and the limit.

Thanks, that answers a lot of questions.

> > Oddly enough, a RETURN from a function from within several loops also
> > only generates a POP 3, instead of a POP 6. Curious...
>
> It should generate no pops (?). A return does not need to pop anything,
> because when the function returns its whole stack slice will be removed.

I must have been misreading the output. Thanks!

-- David Cuny