Re: [Bug-apl] Select from a two-dimensional array

2014-08-02 Thread Elias Mårtenson
Thanks! I ended up doing that. I'm almost glad to learn that there was no secret feature that I didn't know about. :-) Regards, Elias On 3 Aug 2014 12:37, "David B. Lamkins" wrote: > Assuming you want a ravel of the elements under the mask: > > a←2 3⍴1 2 3 4 1 2 > b←2 3⍴0 0 1 0 0 0 >

[Bug-apl] Segfault in rank with empty argument

2014-08-02 Thread Kacper Gutowski
Using rank operator with empty argument of derived function, results in either assertion failure (for positive right operand) or segmentation fault (for non-positive right operand). It works correctly (resulting in an error) when axis syntax is used instead of standard-mandated numeric right opera

Re: [Bug-apl] Select from a two-dimensional array

2014-08-02 Thread David B. Lamkins
Assuming you want a ravel of the elements under the mask: a←2 3⍴1 2 3 4 1 2 b←2 3⍴0 0 1 0 0 0 a 1 2 3 4 1 2 b 0 0 1 0 0 0 (,b)/,a 3 On Sun, 2014-08-03 at 00:12 +0800, Elias Mårtenson wrote: > Here's a problem I've had on multiple occasions, and I have yet to > figur

[Bug-apl] Some typos

2014-08-02 Thread Kacper Gutowski
See below. As a side note, you might want to look at warnings that lintian gives for debian package even if most of them can be safely ingored. -k Index: workspaces/APL_CGI.apl === --- workspaces/APL_CGI.apl (revision 413) +++ work

Re: [Bug-apl] Can't break out of the middle on a display operation

2014-08-02 Thread Elias Mårtenson
Do you think there is a way to configure that? Perhaps disable the double-thing when in Emacs mode? The reason is that in Emacs mode you already have to press C-c twice to send a sinvlde C-c to the underlying process. That means that in order to interrupt right now I need to press it 4 times within

Re: [Bug-apl] Can't break out of the middle on a display operation

2014-08-02 Thread Juergen Sauermann
Hi Blake, good. The double ^C is on purpose to avoid accidentally hitting ^C. Its actually two ^C within 500 ms. /// Jürgen On 08/02/2014 05:40 PM, Blake McBride wrote: Dear Juergen, It prints immediately. Great!!! Last thing, if I could just ^C out of the middle of printing ⍳10 but

[Bug-apl] Select from a two-dimensional array

2014-08-02 Thread Elias Mårtenson
Here's a problem I've had on multiple occasions, and I have yet to figure out a nice generic way of dealing with it. For a one-dimensional array, I can easily select elements based on a bitmap: * 0 0 1 0 0 0/⍳6* 3 Sometimes I want to do the same from a two (or more) dimensional array: *

[Bug-apl] Package metadata format

2014-08-02 Thread Elias Mårtenson
After implementing the metadata functions nnn⍙Provides, nnn⍙Requires, etc, I feel that we should change this slightly. I find the that multitude of functions to support this tend to pollute the output of )FNS quite a bit. It's also somewhat inflexible in that it requires you to add even more funct

Re: [Bug-apl] Can't break out of the middle on a display operation

2014-08-02 Thread Blake McBride
Dear Juergen, It prints immediately. Great!!! Last thing, if I could just ^C out of the middle of printing ⍳10 but I could ^C^C out! (I understand this may be a readline issue that'll have to wait.) Thanks! Blake On Sat, Aug 2, 2014 at 10:25 AM, Juergen Sauermann < juergen.sauerm...@t-o

Re: [Bug-apl] Can't break out of the middle on a display operation

2014-08-02 Thread Juergen Sauermann
Hi Blake, I did some rework of the print functions for APL values. Some were not suited for values with many columns. That should work better now. SVN 413. /// Jürgen On 08/01/2014 06:30 PM, Blake McBride wrote: On Mon, Jul 21, 2014 at 5:33 AM, Juergen Sauermann mailto:juergen.sauerm...@t-onl

Re: [Bug-apl] Problem with documentation in FILE_IO

2014-08-02 Thread Juergen Sauermann
Hi Elias, thanks, fixed in SVN 413. /// Jürgen On 08/02/2014 05:06 PM, Elias Mårtenson wrote: I noticed that doxygen comments have been added for FILE_IO. I find the docs for FIO∆fprintf_stderr to be a bit unclear. The documentation says: Function: Zi ← A *FIO∆fprintf_stderr* B fprintf(std

[Bug-apl] Problem with documentation in FILE_IO

2014-08-02 Thread Elias Mårtenson
I noticed that doxygen comments have been added for FILE_IO. I find the docs for FIO∆fprintf_stderr to be a bit unclear. The documentation says: Function: Zi ← A *FIO∆fprintf_stderr* B fprintf(stderr, A1, A2...) format A1 The function takes a *B* argument, but that argument is never actually us

Re: [Bug-apl] One more patch for indentation

2014-08-02 Thread Elias Mårtenson
Merged. Thanks. Regards, Elias On 2 Aug 2014 03:12, "David B. Lamkins" wrote: > Elias, > > Here's a patch that allows gnu-apl-indent-amounts to be specified in a > file's mode-line. See additional comments in the patch file (attached). >