Re: [Bug-apl] 8⎕CR on empty string array prints strange result

2014-01-29 Thread Nick Lobachevsky
The difference is that a is an empty nested array and that b is an empty simple array. The depths would be different. I tried this example on Dyalog and ≡a is 2, one level of nesting, while ≡b is 1, a simple vector. Also see http://www.sudleyplace.com/APL/Prototype%20Functions.pdf On 1/29/14, E

Re: [Bug-apl] Cleanup when SIGINT or SIGHUP is encountered

2014-01-29 Thread Juergen Sauermann
Hi Elias, thanks, included in SVN 116. /// Jürgen On 01/29/2014 03:07 PM, Elias Mårtenson wrote: Currently, the cleanup() function is never called when the process is killed. This causes the Emacs plugin to leave the socket file in /tmp. It would also prevent the terminal colour settings fro

Re: [Bug-apl] Inverse Tranfer Form fails to reconstruct variable

2014-01-29 Thread Juergen Sauermann
Hi Fred, I'm afraid you are right. Fixed in SVN 115. I do have a regression test suite (almost every bug report is entered into it). In the 1 ⎕TF case the test cases were wrong as well since I did not notice the lacking ' on the inverse transformation. /// Jürgen On 01/29/2014 03:44 PM, Fre

Re: [Bug-apl] Inverse Tranfer Form fails to reconstruct variable

2014-01-29 Thread Frederick H. Pitts
Hello Juergen, Please see the third paragraph of the 'Informal Description' of 11.6.6 Transfer Form in ISO/IEC 13751:2000(E), page 185 and the example presented in 'Creating the Inverse Transfer Form' in "APL2 Programming: Language Reference", page 339. Both references indicate the Invers

[Bug-apl] Cleanup when SIGINT or SIGHUP is encountered

2014-01-29 Thread Elias Mårtenson
Currently, the cleanup() function is never called when the process is killed. This causes the Emacs plugin to leave the socket file in /tmp. It would also prevent the terminal colour settings from being restored. Attached is a patch that fixes this for these signals. My only concern is with the n

Re: [Bug-apl] Inverse Tranfer Form fails to reconstruct variable

2014-01-29 Thread Juergen Sauermann
Hi Fred, I believe you should use the variable name instead of the variable value with ⎕TF, eg: 1 ⎕TF 'R' instead of 1 ⎕TR R and 2 ⎕TF 'R' instead of 2 ⎕TR R Also saw that you use -T -- cool! Best Regards, Juergen On 01/29/2014 06:01 AM, Frederick H. Pitts wrote: Gentle people,

Re: [Bug-apl] Mismatched free( )/delete/delete [ ], invalid read of 4 bytes, & uninitialized values

2014-01-29 Thread Juergen Sauermann
Hello Freg, I checked that class Cell has no destructor, so delete and delete [] will not make a difference. I have changed to delete [] to make valgrind happy, see SVN 114. I will also look into your updated email but this will take a bit longer since I will be AFK for two weeks. Best Reg

Re: [Bug-apl] Print width

2014-01-29 Thread Juergen Sauermann
Hi Kacper, I see. I have changed back to the old ⎕PW behavior and made 79 the default ⎕PW value. SVN version 113. /// Jürgen On 01/28/2014 08:55 PM, Kacper Gutowski wrote: On 2014-01-28 14:23:01, Juergen Sauermann wrote: that was on purpose because the default ⎕PW is 80 and on some 80 column

Re: [Bug-apl] Build failure on OSX

2014-01-29 Thread Juergen Sauermann
Hi, thanks. fixed in SVN 112. /// Jürgen On 01/29/2014 08:45 AM, Elias Mårtenson wrote: In the function Tokenizer::scan_real(), there is a call to exp10(). This function is unique to glibc and does not exist on OSX (and likely not on FreeBSD either, although I haven't checked). Changing the