lua-users home
lua-l archive

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


> This is a bit tweaked.

Right. Let's just drop all these hacks. Lua is meant to be used as a config
language. It was designed for that. It already supports config files in
the form of series of assignments without ending commas or semicolons. It
supports a whole bunch more. If you need those assignments to go into a
table, setfenv after loadfile does it, as someone has already suggested.

Sorry about the noise. I just thought it was an opportunity to show how load
worked...
--lhf