[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Eval a Lua expression
- From: "Javier Guerra" <javier@...>
- Date: Wed, 2 Apr 2008 17:12:03 -0500
On Wed, Apr 2, 2008 at 4:58 PM, Eugen-Andrei Gavriloaie
<shiretu@gmail.com> 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
--
Javier