lua-users home
lua-l archive

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


On Tue, 12 Jan 2010, Francesco Abbate wrote:
>
> I will try to rationalize the complaints. Many people complaints about
> the removal of getfenv/setfenv because:
> 1) you lose the ability of sandboxing a script that you load
> 2) with userdata you are losing the opportunity of:
>    - let the Lua GC be aware of cross dependencies between userdata objects
>    - let a userdata store some Lua data.

(2) is invalid because setfenv and getfenv cannot manipulate userdata
environments in 5.1 so there's no change in 5.2

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
GERMAN BIGHT HUMBER: SOUTHWEST 5 TO 7. MODERATE OR ROUGH. SQUALLY SHOWERS.
MODERATE OR GOOD.