[Bug-apl] another dfun bug

2016-06-01 Thread Xiao-Yong Jin
Hello, perhaps it’s another dfun bug. )clear CLEAR WS ∇z←x f y [1] x{⍺ g ⍵}y [2] →0 [3] ∇ items_allocated = 16 items[7] = 'yUSER-F2 λ1'xENDLVALUE3«0»→ENDL idx = 7 == Assertion failed: 0 && "Bad index" in Func

[Bug-apl] ⎕INP ignores parts of its input (Re: she bang script arguments)

2016-06-01 Thread Kacper Gutowski
I came up with this silly variant of APL-in-shell embedding: #!/bin/sh true ←⎕inp'#' exec apl --script "$0" -- ${1+"$@"} # )erase true But I think there's something wrong with ⎕INP, actually. In the example above, true is ⍬ (sic) just before erasing. ]BOXING 8 ⎕INP "E" AE ┌⊖┐

Re: [Bug-apl] she bang script arguments

2016-06-01 Thread Xiao-Yong Jin
Hi Juergen, Thanks for the script trick. The script in my previous email works for all the cases when bash is in different places (your bash script still requires /bin/bash which fails in *BSD, but /usr/bin/env actually exists for all the systems I have). I wanted to ask if it is OK for you to c

Re: [Bug-apl] Strange bug (more info)

2016-06-01 Thread Juergen Sauermann
Hi Louis, B←A makes B equivalent to A:   A←{(+⌿⍵)÷≢⍵}   B←A   ⎕CR 'A' λ←λ1 ⍵    λ←(+⌿⍵)÷≢⍵   ⎕CR 'B' λ←λ1 ⍵    λ←(+⌿⍵)÷≢⍵ That is not too useful unless you hav

Re: [Bug-apl] Strange bug (more info)

2016-06-01 Thread Louis de Forcrand
I was just wondering what is supposed to happen if I do this: A←{(+⌿⍵)÷≢⍵} B←A Is B equivalent to the lambda, or is it a function that calls A? Or is this simply supposed to signal an error? Louis > On 01 Jun 2016, at 15:38, Juergen Sauermann > wrote: > > Hi Xtian, > > thanks, fixed in SVN 73

Re: [Bug-apl] Strange bug (more info)

2016-06-01 Thread Juergen Sauermann
Hi Xtian, thanks, fixed in SVN 734. All lambdas are now "unnamed" and assigning them to a name, like in A←{ ... } does no longer change the name of the lambda (that was one of the earlier problems) Jürgen