[Bug-apl] Lambda functions are not loaded from a workspace

2014-02-18 Thread Elias Mårtenson
When loading a workspace that was previously saved using the )SAVE command, any functions defined using name←{...} are not loaded. The functions are there, as they can be seen in the XML file, but they are ignored when loading. Regards, Elias

[Bug-apl] Emacs mode updates

2014-02-18 Thread Elias Mårtenson
So, I've been working on the Emacs mode some more in order to be ready for the 1.3 release of GNU APL, and I have no completed the following new features (on top of what is in the master branch right now). The development version is in the branch called "native" of you want to check it out: https:

Re: [Bug-apl] Question regarding the power operator (as in Dyalog APL)

2014-02-18 Thread Juergen Sauermann
Hi Thomas, currently the power operator is not on my TODO list. I may implement it at some point in time, but the mere fact that it is described in "Mastering Dyalog APL" - which is a very good book - does not suffice. In most cases the power operator can be replaced with a simple loop (I kno

[Bug-apl] Question regarding the power operator (as in Dyalog APL)

2014-02-18 Thread baruchel
Hi, as a newbie to APL, I bought "Mastering Dyalog APL" in order to discover the language; I am aware that several variants exist, and I want to use GNU APL as much as possible because of its license. Coming from functional programming and J, I miss the "power" operator which is described in "Mas

Re: [Bug-apl] Calling Value::print() with different ⎕PW

2014-02-18 Thread Elias Mårtenson
Thank you. This is a lot better. I was doing that just because I didn't see a better way to do it. Clearly, this is a better way to do it. :-) Regards, Elias On 18 February 2014 18:34, Juergen Sauermann wrote: > Hi Elias, > > normally you do something like this: > > // const Value & value; >

Re: [Bug-apl] Calling Value::print() with different ⎕PW

2014-02-18 Thread Juergen Sauermann
Hi Elias, normally you do something like this: // const Value & value; PrintContext pctx(style, Workspace::get_PP(), Workspace::get_CT(), Workspace::get_PW()); PrintBuffer pb(value, pctx); UCS_string ucs(pb, value.get_rank(), pctx.get_PW()); ... You can use your own ⎕PW value instead of Work

Re: [Bug-apl] Unterminated strings does not result in error

2014-02-18 Thread Juergen Sauermann
Hi Elias, this is a feature. /// Jürgen On 02/18/2014 04:38 AM, Elias Mårtenson wrote: If I type the following: *'foo* It is parsed as: *'foo'* Instead of giving an error. Is this expected behaviour? To me, it would make much more sense if this was flagged as a syntax error.