[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Is "scripting" truly Lua's future?
- From: Tony Finch <dot@...>
- Date: Mon, 15 Sep 2008 17:19:12 +0100
On Mon, 15 Sep 2008, David Given wrote:
> All my Lua files tend to start with the same boilerplate containing
> lists of:
> local string_find = string.find
> local table_insert = table.insert
> local print = print
> ...etc. It would be really nice to be able to common this somehow.
I suppose if you aren't using bytecode you could append your boilerplate
to the start of a module when loading it. Slightly grotty, though.
f.anthony.n.finch <email@example.com> http://dotat.at/
SOLE: NORTHERLY 3 OR 4, INCREASING 5 OR 6. MODERATE OR ROUGH. SHOWERS.
MODERATE OR GOOD.