Peter Gerwinski wrote:
BTW, (Peter:) BP accepts "RunError" without an argument, so GPC should allow that, too. However, BP gives a "Runtime Error 0" then, which I don't like very much, since the exit status 0 usually means success. So, GPC should probably use some other error code...
Which one?
I'd say one in the "unsorted errors" range 0..99, perhaps 99 -- or 42. ;-) -- Frank Heckenbach, frank@pascal.gnu.de http://fjf.gnu.de/ PGP and GPG keys: http://fjf.gnu.de/plan
Frank Heckenbach wrote:
I (Peter Gerwinski) wrote:
BTW, (Peter:) BP accepts "RunError" without an argument, so GPC should allow that, too. However, BP gives a "Runtime Error 0" then, which I don't like very much, since the exit status 0 usually means success. So, GPC should probably use some other error code...
Which one?
I'd say one in the "unsorted errors" range 0..99, perhaps 99 -- or 42. ;-)
What about 81 (assertion failure)? Peter -- Peter Gerwinski, Essen, Germany, http://home.pages.de/~Peter.Gerwinski/ Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-980511 PGP key on request - 6C 94 45 BE 28 A4 96 - 0E CC E9 12 47 25 82 75 Fight the SPAM and UBE! - http://spam.abuse.net/ - http://maps.vix.com/
Is it possible to hook the RunError in GPC? I would definitely be interested in a feature like that so that custom handlers can be used. See ya! Orlando Llanes "Meine Damen und Herren, Elvis hat soeben das Gebaeude verlassen!" "Look out fo' flyeeng feet" O__/ a010111t@bc.seflin.org \/|____. O <__. \/\> / \ ____________|___\______ http://ourworld.compuserve.com/homepages/Monkey414
participants (3)
-
heckenbīŧ helena.hut.fi -
Orlando Llanes -
Peter Gerwinski