[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Lua 5.3.0 (work3) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 20 Jun 2014 11:39:16 -0300
> As long as you're changing the function signature of C continuations: I
> always thought it would be cool if the type of ctx was something like
> intptr_t rather than int. That way I could use GCC's label address-of
> operator, &&, without having to use a jump table or revert to using a switch
> statement when resuming execution.
The problem with intptr_t is that it is not C89, and even in C99 it is
optional. However, as Lua never uses these values, it is easy to make
the type of ctx configurable, so that it can be intptr_t when available
(if there is an easy way to test its availability).