Re: [Bug-apl] Regression: Lambda functions can no longer be assigned to a variable

2014-02-25 Thread Juergen Sauermann
Hi, thanks. Should work again in SVN 146. Unfortunately the rules governing the syntax of {} are not standardised and still somewhat unclear to me. /// Jürgen On 02/25/2014 05:19 PM, Elias Mårtenson wrote: This used to work a few versions back, now I'm just getting a SYNTAX ERROR: *foo ← {

Re: [Bug-apl] Crash when forgetting to close lambda function

2014-02-25 Thread Juergen Sauermann
Hi, thanks, fixed in SVN 145. /// Jürgen On 02/25/2014 05:17 PM, Elias Mårtenson wrote: Very easy to reproduce this one. Simply type a single *{* character. This will crash GNU APL with the following stack trace: Token: 0x4C03001B { at Token.cc:490 (void *)get_Class(): '0x1b' at Toke

[Bug-apl] Regression: Lambda functions can no longer be assigned to a variable

2014-02-25 Thread Elias Mårtenson
This used to work a few versions back, now I'm just getting a SYNTAX ERROR: *foo ← {⍵}* SYNTAX ERROR foo←λ1 ^ ^ They still work as arguments to operators though: *{⍵+1}¨1 2 3* 2 3 4 Regards, Elias

[Bug-apl] Crash when forgetting to close lambda function

2014-02-25 Thread Elias Mårtenson
Very easy to reproduce this one. Simply type a single *{* character. This will crash GNU APL with the following stack trace: Token: 0x4C03001B { at Token.cc:490 (void *)get_Class(): '0x1b' at Token.cc:491 -- Stack trace at Token.cc:492

[Bug-apl] Generate random number between 0 and 1.

2014-02-25 Thread Elias Mårtenson
Dyalog has a way to generate a number between 0 and 1: ?0. This can be quite useful, and the workarounds without it are a bit ugly. Would it make sense to add this capability to GNU APL as well? Regards, Elias

[Bug-apl] APL line editor v.1.0 pre-release

2014-02-25 Thread baruchel
An initial v.1.0 (pre-release) is now available. It seems to be workable. A little more documentation has to be written. The github is : https://github.com/baruchel/APLedit A demonstration video is in the file: apledit.gif Best regards, -- Thomas Baruchel

Re: [Bug-apl] No ubuntu packages

2014-02-25 Thread Juergen Sauermann
Hi Akiva, not sure if I don't understand the subject? You can create Debian packages with make DEB in the top-level directory (provided that you have the necessary debian tools installed). /// Jürgen On 02/24/2014 09:29 AM, Akiva wrote: Also, may be interested in contributing on non-core stu

Re: [Bug-apl] APL line editor: working version

2014-02-25 Thread baruchel
Juergen Sauermann wrote: > could be a cool thing. One thing that I am missing is a bit > more information of what it exactly does and how it should > integrate with GNU APL (for example). I finally made it work very smoothly with GNU APL by using the LD_PRELOAD mechanism. A comilable and usable v

Re: [Bug-apl] APL line editor: proof of concept (c code)

2014-02-25 Thread Juergen Sauermann
Hi Thomas, could be a cool thing. One thing that I am missing is a bit more information of what it exactly does and how it should integrate with GNU APL (for example). Currently I am trying to keep keyboard input and fonts out of GNU APL as much as possible. The reason is that different platform

[Bug-apl] Execute with ◊ sometimes fails with LENGTH ERROR

2014-02-25 Thread Elias Mårtenson
The following statement works: *a←1 ◊ a←2 a ◊ a+2* 4 3 However, passed as an argument to ⍎, it fails: *⍎'a←1 ◊ a←2 a ◊ a+2'* LENGTH ERROR a+2 a←2 a a←1 ^^ If I change it slightly, it will not fail anymore, but I get the wrong result *⍎'a←1 ◊ a←2 a ◊ a'* 2 1 1 2