[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Q: Lua 5.2 thread environments...
- From: Tony Finch <dot@...>
- Date: Thu, 31 Mar 2011 13:34:47 +0100
Jerome Vuarand <email@example.com> wrote:
> Inside your function, you can get the environment of the caller with
> getfenv, by passing it a number. You can then replace the current
> function environment with that.
But not in 5.2. Even in 5.1 it sounds like a really bad idea to me.
f.anthony.n.finch <firstname.lastname@example.org> http://dotat.at/
Viking, North Utsire, South Utsire: Southeasterly, becoming cyclonic for a
time, 5 to 7, occasionally gale 8 at first in Viking. Very rough at first in
north Viking, otherwise moderate or rough. Rain, fog patches. Moderate or
good, occasionally very poor.