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

Re: catch-cancel



At 1:49 PM 5/30/95, Will Fitzgerald wrote:
>In article <korcuska-3005951056520001@korcuska.ils.nwu.edu>,
>korcuska@ils.nwu.edu (Michael Korcuska) wrote:
>
>> Just following up to my own message.  Here's some code that illustrates
>> the problem.  Just change *tag* to something other than :cancel and the
>> code works.  Any comments?
>>
>[code deleted]
>
>An even shorter version of the problem:
>
>? (throw :bongo "This should be in error.")
>> Error: Can't throw to tag :BONGO .
>> While executing: #<Anonymous Function #xAE02AE>
>
>? (throw :cancel "This should be in error.")
>Cancelled
>

Different "problem" actually. There is a catch :cancel in the read-eval-print
loop so that an uncaught cancel from a modal dialog doesnt cause one
to exit the loop.

Alice@digitool.com