[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Suggestion for 5.3: import() for creating a "slew" of locals
- From: Tom N Harris <telliamed@...>
- Date: Tue, 19 Nov 2013 14:32:53 -0500
On Tuesday, November 19, 2013 09:59:43 AM Sir Pogsalot wrote:
> local import =
> function (t, ...)
> require('debug')
..cut..
>
> debug.setupvalue(debug.getinfo(1, 'f').func, 1, new_env)
> end
>
Which only works when called from the top level of a loaded chunk. I consider
an import that can't be used in a function to be less desirable.
--
tom <telliamed@whoopdedo.org>