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

2014-01-28 Thread Elias Mårtenson
If I create an empty character array by selecting ⍬ from an array that contains a string and a number, the result becomes what seems to be an empty array with non-zero shape. The issue can best be explain by the following interaction. Note the strange output from 8⎕CR: a←('foo' 9)[⍬]

[Bug-apl] Build failure on OSX

2014-01-28 Thread Elias Mårtenson
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 call to exp10(x) to pow(10, x) makes it work. Regards, Elias

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

2014-01-28 Thread Frederick H. Pitts
Gentle people, Please find attached QUADTF.tc.gz. gunzip it and run apl (svn rev 110) thus apl --TM 2 -T QUADTF.tc Examine QUADTF.tc.log and observe that the SCORES variable is not being reconstructed in the workspace with either the migration or extended form of the inve

Re: [Bug-apl] Print width

2014-01-28 Thread Kacper Gutowski
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 terminals this causes an extra empty line to be printed. If there are terminals like that, wouldn't it be easier to just initialize ⎕PW to 79 while keeping relation between

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

2014-01-28 Thread Frederick H. Pitts
Hello Jrgen, With regard to item 1: a) I've rerun the valgrind test against SVN 111 and valgrind still complains. b) Before I suggested adding the '[]' to the 'delete', I made the change and performed the valgrind test. Valgrind did not complain about double deletions. It is possible t

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

2014-01-28 Thread Frederick H. Pitts
Gentle people, [I'm resending this email because I left the `[Bug-apl]' prefix off the the subject line in the previous email. Also I've added some additional valgrind detected memory errors.] valgrind runs with options --leak-check=full --show-leak-kinds=all --track-origins=yes

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

2014-01-28 Thread Juergen Sauermann
Dear Fred, ad 1) the delete is actually correct. the Cells to which the pointer points have beed destructed before and delete[] would lead to double destruction. I have inserted a variable long_ravel in Value.cc which hopefully confuses valgrind enough to not complain anymore. ad 2) I have ch

Re: [Bug-apl] Transpose crashes when faced with empty array

2014-01-28 Thread Juergen Sauermann
Hi, thanks. Fixed in SVN 110. /// Jürgen On 01/28/2014 08:12 AM, Elias Mårtenson wrote: Very easy to reproduce this one: ⍉⍬ This gives the following error: == Assertion failed: !shape.is_empty() i

Re: [Bug-apl] Print width

2014-01-28 Thread Juergen Sauermann
Hi, that was on purpose because the default ⎕PW is 80 and on some 80 column terminals this causes an extra empty line to be printed. /// Jürgen On 01/28/2014 01:18 PM, Kacper Gutowski wrote: Hi, After lines are neatly wrapped in r109 in SVN, but I think there's some off by one error; it beha

[Bug-apl] Print width

2014-01-28 Thread Kacper Gutowski
Hi, After lines are neatly wrapped in r109 in SVN, but I think there's some off by one error; it behaves as if ⎕PW was ⎕PW-1. ⎕PW⍴'X' XXX X -k