lua-users home
lua-l archive

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


On Thu, Dec 19, 2013 at 3:20 AM, Rena <hyperhacker@gmail.com> wrote:
> On Wed, Dec 18, 2013 at 9:16 PM, Pierre-Yves Gérardy <pygy79@gmail.com>
> wrote:
>>
>> Guys, I believe you missed my other post... unless you need more than
>> JSON-like documents, that's what you're looking for.
>
> Sorry, I did see your post, and it does look like it'd work (though it's a
> lot of code!) My only gripe is it forces the file to be a table, which
> eliminates the possibility of using conditionals.

You can put an "IF" function in the environment. Another useful helper
would be (a safe wrapper around?) os.gentenv.

-- Pierre-Yves