lua-users home
lua-l archive

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

The message referenced proposes an implementation in C for a lexical extension which is not safe: it defines a C function using two static variables (state and level) which should be located instead in the strcuture pointed by LexState *ls. As is, the proposal would not allow the Lua parser to be used recursively (example via a Lua "load()" call).

Le dim. 18 nov. 2018 à 20:29, Luiz Henrique de Figueiredo <> a écrit :
> There have been numerous discussions on this list for lambda
> notations. Were any of those accompanied by a patch so that one could
> try them out?

See .
Equivalent code for ltokenf should be straightforward.