[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: idiomatic table iteration
- From: Chris Emerson <chris-lua@...>
- Date: Fri, 26 Aug 2016 15:23:17 +0100
On Fri, Aug 26, 2016 at 10:01:38AM -0400, Patrick Donnelly wrote:
> On Wed, Aug 24, 2016 at 9:07 PM, Daurnimator <quae@daurnimator.com> wrote:
> > for (int base_idx = (lua_pushnil(L), lua_gettop(L)); lua_next(L, idx);
> > lua_settop(L, baseidx))
>
> Eh... that's not ANSI C and I still don't like that it encourages
> sloppy stack discipline.
What's not ANSI C about that?
Chris