[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Is Lua 5.2-work4's loadin function too strict?
- From: Peter Cawley <lua@...>
- Date: Sat, 21 Aug 2010 11:15:53 +0100
I think that "loadin(_ENV, ...)" may become a common pattern in Lua
5.2 for loading something into the same environment as the function
doing the loading. I also think that "_ENV = nil" may become a common
pattern for catching accesses to global variables. Unfortunately,
these two patterns are currently incompatible as "loadin" only accepts
tables for its environment parameter. Hence I think that "loadin"
should be changed to allow a wider range of values for its environment