[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua source as config file
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 8 Feb 2007 07:46:04 -0200
> but the return makes it look less like a config file.
Drop the return and the table constructor all together and use a custom
dofile, one that adds "return {" at the beginning and "}" at the end.
This will allow (and restrict) config files to be a series assignments.
On the other hand, you'll need commas or semicolons after each assignments;
semicolons seem better in this case.
--lhf