Re: [Bug-apl] she bang script arguments

2016-06-05 Thread Elias Mårtenson
How about checking if argv[0] is "aplscript" and then run it as if --script had been given? That would allow you to symlink apl to aplscript and provide both behaviours. Regards, Elias On 5 Jun 2016 17:53, "Juergen Sauermann" wrote: > Hi Xiao-Yong, > > you can already run apl as proposed. The o

Re: [Bug-apl] she bang script arguments

2016-06-05 Thread Juergen Sauermann
Hi Xiao-Yong, you can already run apl as proposed. The only difference is that --script is not automatically implied. But setting --script automatically would make the use of GNU APL incompatible with the needs of other users (including myself)

Re: [Bug-apl] Lambda valence error

2016-06-05 Thread Juergen Sauermann
Hi, it kind of worked earlier, but not really. I changed the behavior in SVN 622 in order to fix a bug reported earlier. If I remember correctly then: - )LOAD of a workspace with a monadic function called dyadically on the )SI stac

Re: [Bug-apl] another dfun bug

2016-06-05 Thread Christian Robert
something similar, )reset ∇z←Push func;f2c;fh [1] f2c←{(⎕ucs 10),⍨¨{(∼⌽∧\⌽⍵=' ')/⍵}¨{⊂[1+⎕io]⎕cr ⍵} ⍵}⍝ Internal macro to transform a function to text [2] fh←'w' ⎕fio[3] 18 ⎕cr {(∼⌽∧\⌽⍵=' ')/⍵}func ⍝ Open a file, no trailing blanks, honor utf-8 names [3] ⊣{⍵ ⎕fi