Re: [Bug-apl] libapl load problem....UPDATE 2

2018-05-20 Thread Dirk Laurie
ally, but I don't know. > > I should mention that libapl is mainly a work of Dirk Laurie, I suppose he > does not use dlopen(), but uses approach 1. > Maybe Dirk can give you some more hints about how to use libapl. I did this three years ago, using SVN 570 of GNU APL. In an ideal world

[Bug-apl] Would a more helpful error message be possible?

2018-05-13 Thread Dirk Laurie
Hi Jürgen: a←1 a←{⍺*⍵} SYNTAX ERROR Also: f←{⍺-⍵} f←1 SYNTAX ERROR Would it be possible to print NAME CLASS ERROR instead? Best wishes Dirk

[Bug-apl] Unexpected cell type change to CT_BASE

2015-02-23 Thread Dirk Laurie
2015-02-22 21:48 GMT+02:00 Dirk Laurie : > The folllowing program pinpoints what I do not understand about > the use of Value and Value_P. I am beginning to think it may be a bug. Here is a minimal example of the phenomenon that causes it. ~~~ #include using namespace std; #include

[Bug-apl] Value::debug should be const?

2015-02-22 Thread Dirk Laurie
Current: /// debug-print \b this value void debug(const char * info); Suggested: /// debug-print \b this value under \b info void debug(const char * info) const;

[Bug-apl] API for GNU APL

2015-02-22 Thread Dirk Laurie
Hi Jürgen: I've got code that works except for bugs unconnected with the GNU APL routines. I decided to implement the interface as a wrapper for an item of type `const Value_P&`. API.cc contains the following lines: // The commented-out variants give segmentation errors, I don't understand why.

[Bug-apl] )ERASE and )HELP write to CERR

2015-02-16 Thread Dirk Laurie
Hi Jurgen: I have observed that: 1. All commands except )ERASE and )HELP honour the `out` parameter. 2. )HELP writes "Commands are:" to `out`, which is always CERR, the built-in commands directly to CERR, and user-defined commands to `out`, which is always CERR. There seem to be hidden mysteries

[Bug-apl] Interesting behaviour of SVN version 530

2015-02-09 Thread Dirk Laurie
If you type Ctrl-D, you are told to use )off. If you then type )off, the message EOF at Command.cc:68 is issued. You need another )off to leave APL. APL 1.4 quits at the first )off. Is this difference intended?

[Bug-apl] Termination behaviour

2015-02-08 Thread Dirk Laurie
Hi Jurgen: Since merely loading libapl.so (which is all of GNU APL except main.o) creates an APL workspace, the question of clean termination arises. I have experimentally determined that )OFF does not call finalizers on the Lua side. This is unacceptable, since Lua provides a facility for progra

Re: [Bug-apl] libapl.so?

2015-01-30 Thread Dirk Laurie
2015-01-30 12:57 GMT+02:00 Elias Mårtenson : > I already do pretty much this in the Android version. The Android APK > contains libapl.so which is then linked from the Java code which drives the > user interface. > > Building libapl.so takes a bit of manual work right now, but in essence I > config

[Bug-apl] libapl.so?

2015-01-30 Thread Dirk Laurie
a library that would allow the embedding of APL functionality in a different host program? Thanks for a very impressive APL implementation, and best wishes. Dirk Laurie