Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #1560

Re: Wrote a fatalError function

From Cecil Westerhof <Cecil@decebal.nl>
Newsgroups comp.lang.postscript
Subject Re: Wrote a fatalError function
Organization Decebal Computing
References <878v0l8odt.fsf@Aspire.decebal.nl> <495cc790-b3a1-4b6a-bc5b-e8fd88a4de0b@googlegroups.com>
Date 2013-08-01 19:41 +0200
Message-ID <874nb98g18.fsf@Aspire.decebal.nl> (permalink)

Show all headers | View raw


Op donderdag 1 aug 2013 18:46 CEST schreef luser:

>> % To quit the program when there was an error, default the stack is
>>   not shown
>>
>> % Only print the errorMessage when it is not empty
>>
>> % errorMessage [surpressStack]  fatalError  -
>>
>> /fatalError {
>>
>> dup type /booleantype ne {
>>
>> true
>>
>> } if
>>
>> {
>>

>>
>> interrupted
>
> This should be `interrupt` or else you may trip
> an infinite loop of /undefined errors.

Done.


>> /USER-DEFINED-ERROR cvx /unregistered signalerror
>>
>> /handleerror signalerror
>
> This line is unnecessary (and wrong). /signalerror should 
> always be called with 2 arguments, and /handleerror is not
> an appropriate error-name (even though it lives in the same
> dict, errordict).

Some garbage that was not correctly deleted after the row of edits.
Luckily it would not get there, but deleted also.

Thanks for all the help you are giving.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

Back to comp.lang.postscript | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Wrote a fatalError function Cecil Westerhof <Cecil@decebal.nl> - 2013-08-01 16:41 +0200
  Re: Wrote a fatalError function luser- -droog <mijoryx@yahoo.com> - 2013-08-01 09:46 -0700
    Re: Wrote a fatalError function luser- -droog <mijoryx@yahoo.com> - 2013-08-01 09:50 -0700
    Re: Wrote a fatalError function Cecil Westerhof <Cecil@decebal.nl> - 2013-08-01 19:41 +0200

csiph-web