lua-users home
lua-l archive

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


On 19/02/2010, at 10:43 AM, Nick Gammon wrote:

> On 16/02/2010, at 12:12 PM, David Burgess wrote:
> 
>> Any news on the 5.2 front?
> 
> 
> I haven't seen any comment on my message in an earlier thread, that the following code:
> 
> local env = {}
> local f = assert (loadfile ("config.lua"))
> setfenv (f, env) ()
> 
> ... which lets you load a configuration file into a table, will no longer work under Lua 5.2.

I do exactly this too.  It'd be a shame if 5.2 broke it.

Cheers,
Geoff