Re: Is the registry needed?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Is the registry needed?
- From: "Soni L." <fakedme@...>
- Date: 2015年9月30日 15:01:34 -0300
On 30/09/15 01:34 PM, Luiz Henrique de Figueiredo wrote:
If Lua doesn't need a registry then neither does C.
That's not true. Lua is an embedded language and C code may need to
store things in a Lua state that Lua scripts cannot have access to
because of security. Not everything that can be done to Lua in C should
be exposed to Lua scripts.
function f()
local i = 3
return function() print(i) end
end
Does another script have access to i?
--
Disclaimer: these emails may be made public at any given time, with or without reason. If you don't agree with this, DO NOT REPLY.