lua-users home
lua-l archive

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

On Wed, Apr 2, 2008 at 4:58 PM, Eugen-Andrei Gavriloaie
<> wrote:
>  Yes, it would be great, but is not looking like a configuration file
> anymore. A configuration file should be very simple to edit and maintain.
> Having the user forced to provide some functions will not be such a good
> idea.

that's a much better approach, don't dimiss it so easily.

you wouldn't directly compile and execute the config file, just a
small internal Lua script that loads the config and calls C functions
to intern each piece of info to your program.

the config author doesn't have to see the whole 'interning' script