[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: User Interrupt
- From: "Anders Bergh" <anders@...>
- Date: Tue, 27 Jun 2006 20:16:00 +0200
I assume you use Freepascal on Linux:
On 6/27/06, Geo Massar <firstname.lastname@example.org> wrote:
LuaTut, the Pascal clone of lua.c, does exit quitely whenever ctrl-C is
pressed, no message other than "^C". I had to comment out the signal
functions in the docall function. There is no Pascal equivalent for them.
Pascal has its own mechanism to catch those signals.
If the purpose of the signal function is to catch ctrl-C signals and it is
only one reason, won't it be good idea to move the signal functions inside
of the pcall function and add a new status code for the user interrupt, say
LUA_USERINT, to the other error codes?