bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] ^C ATTENTION


From: Juergen Sauermann
Subject: Re: [Bug-apl] ^C ATTENTION
Date: Sat, 03 Oct 2015 12:21:37 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Hi Louis,

could you  provide a concrete example?

Some remarks on ^C in GNU APL. There are two levels: a single ^C (called ATTENTION) and two ^C
within one second (called INTERRUPT).

ATTENTION is primarily checked by the runtime parser at the end of the line. This is to make
→N work nicely so that the interrupted line is finished before execution is stopped.

INTERRUPT is currently checked in printouts so that the display of long values can be aborted.
In general INTERUPT has a potential of leaving behind an inconsistent workspace and, if
checked to often, of performance impact. Therefore an example would be handy so that I
can see which (and where) an operation could be stopped in a reasonable way.

/// Jürgen


On 10/01/2015 10:26 PM, Louis de Forcrand wrote:
I've noticed that CONTROL-C works quite well with 
multiple-line functions, but not nearly as well with 
programs that use ⍣ for example (one-liners).
APL just seems to freeze, and with a little luck it 
stops and prints ATTENTION, while at other times
it just doesn't seem to stop at all.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]