[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Writing extensions which interact (is not fun)
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 6 Aug 2012 17:00:50 -0300
> 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