lua-users home
lua-l archive

Re: Lua as Configuration Conditional Statement inside table definition

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


On Wed, Nov 10, 2010 at 8:02 PM, HyperHacker <hyperhacker@gmail.com> wrote:
> You might wrap table.insert in another function for added readability,
> but already this is a nice concise way to keep related options grouped
> together and make it clear to those without much Lua knowledge what's
> going on.
Or even doing a little closure voodoo and providing 'familiar' dot notation
Config = List()
Config.add (1,'one')
Config.add (2,'two')
...
Depends on the audience...
steve d.

AltStyle によって変換されたページ (->オリジナル) /