lua-users home
lua-l archive

Re: lua source as config file

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


> It doesn't prevent non-config-file-like behavior, like
> "x = function() ... end();"
This may be config-file-like behavior, yes, who knows?
Perhaps the app allows the user to set callbacks.
> It also makes it inconvenient to compile the files, which can be useful
> (depending on the "config files"). I've witten scripts to process and
> compile Lua scripts, and it's much nicer to be able to compile them in-
> place.
(echo 'return {'; cat $*; echo '}') | luac -
But, yes, I'm pushing it for no reason :-)
--lhf

AltStyle によって変換されたページ (->オリジナル) /