[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: 5.2 news
- From: Geoff Leyland <geoff_leyland@...>
- Date: Fri, 19 Feb 2010 10:48:16 +1300
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