[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua Virtual Machine Spec?
- From: David <dcuny@...>
- Date: Mon, 5 May 2003 18:54:22 -0700
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