bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] Gnu APL Quad-Quote read coming from souce file and not the


From: Juergen Sauermann
Subject: Re: [Bug-apl] Gnu APL Quad-Quote read coming from souce file and not the terminal
Date: Sun, 14 Sep 2014 16:27:23 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.0

Hi Fred,

Thanks. I see some debug outout at the end of your file:

      hello
What is your name? 
)SI not cleared at the end of ./hello.apl:
hello[2]  X ← ⍞
          ^
⋆  hello
   ^


That debug output should only occur if a testcase file is executed and
not for normal script file like your hello.apl. This should be fixed in SVN 472.

------

Apart from that I can't really see what is wrong. The intended behavior (and the actual behavior on
my box) is that GNU APL reads from input files as long as there are unprocessed files and switch
to stdin after the last input file was processed.

In your case, hello.apl defines function hello and calls it on the last line of hello.apl.
After having read the last line of hello.apl, the next input is read from stdin:

      hello                       ← from script
What is your name?  Jürgen        ← from stdin
Hello Jürgen

If your box behaves differently then I need more details.

/// Jürgen



On 09/13/2014 03:31 AM, Frederick H. Pitts wrote:
Gentle people,

	As of SVN 470, ⍞ references are taking their input from the APL source
file instead of the terminal if there is any source file left to be
read.  It appears that the interpreter is starting to execute code
before the interpreter has completely consumed the source file and is
confusing the file input stream with the terminal stream.

	A file that demonstrates the error is attached.

Regards,

Fred



reply via email to

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