Re: [Bug-apl] Android features

2014-06-15 Thread Peter Teeson
I suggest once again two abstract classes for I/O with virtual methods which can then be inherited from and implemented by the user. This special case patching of fixes is not elegant - to me it is smelly coding. Sorry if I offend but that's my 2¢. Peter On 2014-06-15, at 4:06 PM, Elias Mårte

[Bug-apl] Question about )DUMP command output

2014-06-15 Thread Frederick H. Pitts
Hello Juergen, For sometime now, I've noticed that the first line of the )DUMP command output is #!/usr/local/bin//usr/local/bin --script -- Is this correct? #!/usr/local/bin/apl --script -- seems more appropriate. Regards, Fred Retired Chemical Engineer

[Bug-apl] Android features

2014-06-15 Thread Elias Mårtenson
Do you think it would be possible to apply this patch that avoids setting up the output streams when compiling for Android? The Android version installs its own that redirects the output to Java streams. Regards, Elias Index: src/Output.cc ==

Re: [Bug-apl] )IN crashes

2014-06-15 Thread David B. Lamkins
Thank you. Confirmed working. On a related note: would it make sense to also warn about other GNU APL extensions when writing an )OUT file? I'm thinking in particular of lambdas and defined-function axis notation; these don't seem to cause problems with )OUT and )IN, but neither are they standard

Re: [Bug-apl] Error when starting

2014-06-15 Thread Juergen Sauermann
Hi Elias, I have changed ./configure to explicitly check for shm_open() rather than for librt presence. SVN 328. /// Jürgen On 06/15/2014 06:41 PM, Elias Mårtenson wrote: It's in libc on OSX. In other words, no special library is needed to use it. Regards, Elias On 15 June 2014 22:28, Jue

[Bug-apl] Revision 327 minor warning

2014-06-15 Thread Peter Teeson
GNUAPL/apl-svn/src/UTF8_string.cc:273:1: Control reaches end of non-void function

Re: [Bug-apl] Error when starting

2014-06-15 Thread Elias Mårtenson
It's in libc on OSX. In other words, no special library is needed to use it. Regards, Elias On 15 June 2014 22:28, Juergen Sauermann wrote: > Hi Elias, > > in which library is *shm_open()* contained under OSX? > > It is *librt.so.1* in linux, but I can change *configure.ac >

Re: [Bug-apl] Error when starting

2014-06-15 Thread Juergen Sauermann
Hi Elias, in which library is *shm_open()* contained under OSX? It is *librt.so.1* in linux, but I can change *configure.ac* for OSX. /// Jürgen On 06/14/2014 11:49 PM, Elias Mårtenson wrote: I found it. The problem is that shm_open is defined to -1: #ifndef HAVE_LIBRT # define shm_open(nam

Re: [Bug-apl] )IN crashes

2014-06-15 Thread Juergen Sauermann
Hi David, thanks for isolating the fault. I fixed it in SVN 327. The fault was created by native functions being )OUT-ed and )IN-ed. They are now handled properly, but the file created by )OUT is no longer suitable as workspace exchange file when it contains native functions (because native func

[Bug-apl] Function to parse a CSV string

2014-06-15 Thread Blake McBride
I posted code to parse a CSV string into a nested array containing the elements. It correctly handles surrounding quotes, embedded quotes, and empty fields. I am posting a GNU APL specific one here. ∇CSV∆Parse[⎕]∇ ∇ [0] z←CSV∆Parse v;y;d;q [1] d←',' [2] q←'"' [3] ⍝ break apart c