lua-users home
lua-l archive

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


> is that possible to make lua static free? I mean, makes it's static
> variable become a field in lua_State? that may makes cross call lua c
> function safe.

The Lua code has no static variables, only a few static constants.

Nevertheless, several C functions that Lua uses can have static
variables inside them (e.g., malloc and errno), so it is not practical
to make regular Lua completely "static free".

-- Roberto