[Bug-apl] Possible improvement to ]BOXING

2014-03-03 Thread Elias Mårtenson
I love ]BOXING and I'm using it all the time now. It's particularly useful when you're a beginner like myself. Would it be possible to prevent the application of the default ]BOXINGvalue when explicitly using ⎕CR? Consider this interaction? *]BOXING 8* *'foo' 'bar'* ┌→──┐ │┌→─

[Bug-apl] Should a native function be expungeable?

2014-03-03 Thread David B. Lamkins
Once one defines a native function, should the function be expungeable? Attempting to )erase the function fails silently; applying ⎕ex to the native function's name causes a crash.

[Bug-apl] )COPY and )PCOPY

2014-03-03 Thread David B. Lamkins
)COPY and )PCOPY should not change wsid.

Re: [Bug-apl] Getting list of quad-commands and system commands

2014-03-03 Thread Elias Mårtenson
And it's done. There is now expansion of both system commands and quad functions in the Emacs mode. Regards, Elias On 2 March 2014 01:52, Juergen Sauermann wrote: > Hi, > > providing descriptions of functions is a lot of work. Most people know APL > after > a short while, and those who need it

Re: [Bug-apl] [Feature request] "]boxing on" analogue

2014-03-03 Thread Elias Mårtenson
I second that thank you. This thing is awesome. :-) Regards, Elias On 3 March 2014 23:23, Daniel H. Leidisch wrote: > Hello! > > Juergen Sauermann > writes: > > > I have added command ]BOXING which takes an argument OFF, 2, 3, 4, 7, > > 8, or 9. > > See SVN 152. > > Great, thank you very much

Re: [Bug-apl] D-fn binding leackage, Nested d-fns

2014-03-03 Thread Daniel H. Leidisch
Hello Jürgen! Juergen Sauermann writes: > I would like to explain my point of view regarding Lambdas aka. > D-funs. Thanks. I should mention that I am an APL beginner, so my answer will draw from my experiences with other languages, especially functional ones (in the functions as first class ob

Re: [Bug-apl] [Feature request] "]boxing on" analogue

2014-03-03 Thread Daniel H. Leidisch
Hello! Juergen Sauermann writes: > I have added command ]BOXING which takes an argument OFF, 2, 3, 4, 7, > 8, or 9. > See SVN 152. Great, thank you very much! Regards, Daniel

Re: [Bug-apl] D-fn binding leackage, Nested d-fns

2014-03-03 Thread Juergen Sauermann
Hi, I have added my first shot at recursive lambdas. SVN 153. /// Jürgen On 03/03/2014 02:01 PM, Elias Mårtenson wrote: I would like to suggest that the most convincing example is that of consistency. If { } can be used to wrap arbitrary APL code in an anonymous function, then it makes sense

Re: [Bug-apl] [Feature request] "]boxing on" analogue

2014-03-03 Thread Juergen Sauermann
Hi, I have added command ]BOXING which takes an argument OFF, 2, 3, 4, 7, 8, or 9. See SVN 152. /// Jürgen On 03/02/2014 12:06 PM, Daniel H. Leidisch wrote: Hello! When experimenting at the REPL, I often find myself typing n⎕CR repeatedly at the beginning of lines. As an Emacs user, it wou

Re: [Bug-apl] D-fn binding leackage, Nested d-fns

2014-03-03 Thread Elias Mårtenson
I would like to suggest that the most convincing example is that of consistency. If { } can be used to wrap arbitrary APL code in an anonymous function, then it makes sense that you can also nest them. I'd also like to present my previous email as an example to a situation where I wanted nested lam

Re: [Bug-apl] Patch: gnu-apl-ansi-colors

2014-03-03 Thread Juergen Sauermann
Hi David, thanks, included in SVN 151. /// Jürgen On 03/03/2014 04:13 AM, David B. Lamkins wrote: See attached.

Re: [Bug-apl] D-fn binding leackage, Nested d-fns

2014-03-03 Thread Juergen Sauermann
Hello Daniel, I would like to explain my point of view regarding Lambdas aka. D-funs. Initially I considered them as not needed; they are not defined in the APL standard and the rules related to them seem to be rather unclear. After seeing some requests to support them I started thinking about

Re: [Bug-apl] Multiply and add with axis

2014-03-03 Thread Juergen Sauermann
Hi, thanks, fixed in SVN 150. /// Jürgen On 03/02/2014 11:50 AM, Daniel H. Leidisch wrote: Hello! Multiply and add doesn't seem to work with axis specifications: (3 5⍴1) ×[1] ⍳3 INDEX ERROR (3 5⍴1)×[1]⍳3 ^ ^ INDEX ERROR (3 5⍴1)+[1]⍳3 ^ ^

[Bug-apl] Nested function definitions not working

2014-03-03 Thread Elias Mårtenson
I tried to define a tohex function that accepts multiple values: {{'0123456789abcdef'[⎕IO+(4⍴16)⊤⍵]}¨⍵} This results in the following: *tohex ← {{'0123456789abcdef'[⎕IO+(4⍴16)⊤⍵]}¨⍵}* SYNTAX ERROR However, splitting it up in two functions works fine: *tohex1 ← {'0123456789abcdef'[⎕