lua-users home
lua-l archive

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


steve donovan wrote:
On Tue, Nov 2, 2010 at 10:03 AM, Lorenzo Donati
<lorenzodonatibz@interfree.it> wrote:
I was looking for a way to solve the problem in Lua and forgot to try to
solve it the other way around (doh!) ! :-)

The other way is to create a little batch file to launch Lua

lua %*
pause

and make the default 'run' operation for Lua script point to this batch file.

Actually, this might be a sensible default for Lua for Windows..

steve d.



I've thought about that, but I discarded the idea, because then there is always that uncondtitional pause, and sometimes I use a lua script to launch other scripts or programs, so it will get in the way then.

Sometimes I wish that stock Lua had a bit more support for "system dependent" features. I know that many limitations come from the ANSI C compatibility policy (which I think is overall good), but still I'd like a little more batteries on this front (I'm really no C wizard, and definitely not a system programmer, so every time I need to compile or - worse - create some C code I feel a little uneasy, especially concerning its reliability).

-- Lor