lua-users home
lua-l archive

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


On Wed, Mar 26, 2014 at 11:00 AM, Journeyer J. Joh
<oosaprogrammer@gmail.com> wrote:
> I will try to use it.

Yes, it's designed to capture these simple patterns so that Lua can be
used without much knowledge of the API.  I would be interested in your
experiments!

The example needs another bit of error checking - should look at the
value returned by llua_gets_v.  If it is non-zero, it will be an error
string - e.g. if a person did not set a required field in the config.
(The ? allows for defaults; otherwise, it's an error)