lua-users home
lua-l archive

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


On Thu, May 29, 2014 at 11:57 AM, Sean Conner <sean@conman.org> wrote:

>   Other systems not so much, so yes, I could see adding a "-path" and
> "-cpath" to the Lua interpreter.

I'm not suggesting these just for other systems where defining these
environment variables can be difficult (obviously we're talking about
Windows).  Sometimes you only need those paths for a few minutes, a
very temporary thing -- it's just more convenient than writing the
commands to reflect it in the environment -- and it's not as
permanent.

>   That would be "lua -lmodule"

Yep, forgot about -l

>> You could just have a
>> module called pause that calls io.read(), waiting for any character
>> input.  Would also be nice to have a flag for executing a bit of Lua
>> after the auto-require()'s but before the script run.
>
>   That would be "lua -e 'luacode' -i"

Was talking about having a switch for executing Lua code before and
after the script you run -- does it execute it in order of the command
line arguments given?  -e 'before run code' script.lua -e 'after
script code' ?