[Bug-apl] Calling Value::print() with different ⎕PW

2014-02-17 Thread Elias Mårtenson
In my native code, I would like to be able to get a printable representation of a Value_P as if ⎕PW was set to some very large value (effectively unlimited). What is the most efficient way to do this? I was trying to call assign on the return value from Workspace::get_v_Quad_PW(), but I got a DOM

[Bug-apl] Unterminated strings does not result in error

2014-02-17 Thread Elias Mårtenson
If I type the following: *'foo* It is parsed as: *'foo'* Instead of giving an error. Is this expected behaviour? To me, it would make much more sense if this was flagged as a syntax error. Regards, Elias

Re: [Bug-apl] Gnu APL and ANSI escape sequences

2014-02-17 Thread Frederick H. Pitts
Hello Juergen, Yes, escape sequences can be sent to the terminal through the normal interpreter, ⎕ and ⍞ output mechanisms but there are currently limitations with all three. Normal interpreter and ⎕ output appends a new-line character that prevents the programmer from maintaining cursor

Re: [Bug-apl] Dyadic / (replicate) does not work with ¨ (each)

2014-02-17 Thread Juergen Sauermann
Hi, I have changed the parser to degrade / and friends from operator to function in the examples below. One remaining case is (with / any of / ⌿ \ or ⍀): S//B where the left / is a function when S is a value and and an operator if S is a function (which is not known at parse time). The bind

Re: [Bug-apl] Implementing realtime variable viewer support

2014-02-17 Thread Juergen Sauermann
Hi Elias, The name of a Symbol uniquely identifies a symbol within one Workspace (and there is only one Workspace). The only cases where the pointer changes is when a new workspace with the same symbol name is loaded or when the symbol is explicitly )ERASEd or ?EXed. I all these cases you

Re: [Bug-apl] Re : Re: Trouble with GNU APL 1.2

2014-02-17 Thread Juergen Sauermann
Hi Thomas, single-expression lambdas should work already in the latest SVN version, only the documentation is missing. Multi-line and multi-statement lambdas will not be implemented because I believe they are awkward and turn APL into a different language. /// Jürgen On 02/17/2014 12:54 PM, b

Re: [Bug-apl] Small workspace of an example from "APL in Exposition" corrupts keyboard input after reload

2014-02-17 Thread Juergen Sauermann
Hi Jean-Pierre, I believe I found the reason for this problem, see SVN 132. When the workspace is )LOADed or )COPYed and ⎕NLT is assigned. Assigning ⎕NLT calls setlocale(), which in turn seems to mess up libreadline. As of SVN 132: * ⎕NLT is not assigned when )LOADing a workspace, * when ass

Re: [Bug-apl] Gnu APL and ANSI escape sequences

2014-02-17 Thread Juergen Sauermann
Hi Fred, I believe you simply need to create the sequence and insert it into the other text as appropriate, eg: ESCSEQ←(⎕UCS 27),'[0;35;48m'⍝ RED foreground 'Hello',ESCSEQ,'World' HelloWorld Note that ⎕UCS is more portable than ⎕AV or ⎕AF. /// Jürgen On 02/14/2014 10:04 PM

Re: [Bug-apl] Re : Re: Trouble with GNU APL 1.2

2014-02-17 Thread Juergen Sauermann
Hi Thomas, I have found the root cause of your problem. It was non-ASCII characters (é) in the filename /home/thomas/Téléchargements/GNUAPL/trunk/workspaces/CONTINUE I have fixed this in SVN 130. There might be more such cases; pleas keep reporting them. /// Jürgen On 02/16/2014 11:22 A