lua-users home
lua-l archive

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

> 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).

-- Roberto