|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] related to ⎕QS |
Date: | Sun, 27 Sep 2015 16:59:31 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
Hi Alex, yes. You echo "yadda" into the interpreter. From the interpreter's perspective this means that you first enter a line containing the word yadda, which leads to a VALUE ERROR because the interpreter tries to reference a variable with that name. Same as the following when entered directly: yadda VALUE ERROR yadda ^ Then you close stdin and the interpreter complains. ^D or end-of-input detected (1). Use )OFF to leave APL! The reason is the following. Normally the stdin of a process is closed by typing ^D. However, just exiting on ^D would make you loose your work. The APL interpreter therefore tells you to give command )OFF instead, which is the standard way of ending an APL session. This is fine if you run apl interactively. However, if you run it as a script (like in your echo example), then this would lead to an infinite loop. Therefore (1) the warning is printed only a few times, and (2) when EOF (aka ^D) is still coming in (and at a fast rate) then the interpreter assumes that it is run from a script and exits without )OFF. /// Jürgen On 09/26/2015 12:36 AM,
address@hidden wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |