bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] Programmatic path configuration?


From: Juergen Sauermann
Subject: Re: [Bug-apl] Programmatic path configuration?
Date: Sun, 22 Jun 2014 17:29:35 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5

Hi Elias,

if no library reference is given in APL then library reference 0 (corresponding to the first
path shown in )LIBS) is assumed. Library reference 0 is also used for commands
that do not allow a library reference number (eg. )IN and )OUT).

If no path is given in a preferences file then the path is constructed from APL_LIB_ROOT
by appending /workspaces for libref 0, /wslib1 for libref 1, /wslib2 for libref 2, and so on.
This directory structure was taken from IBM APL2.

If no APL_LIB_ROOT is set then one is searched from directory ',' upwards hoping to find one.

//// Jürgen


On 06/22/2014 03:42 PM, Elias Mårtenson wrote:

Thanks. What about the workspaces paths?

Regards,
Elias

On 22 Jun 2014 15:35, "Juergen Sauermann" <address@hidden> wrote:
Hi Elias,

it depends on a number of things (preferences files, environment variable APL_LIB_ROOT, and
current directory) see LibPaths::search_APL_lib_root().

You can view the resulting setting with command )LIBS in APL. I believe in your case APL_LIB_ROOT is
the way to go.

///  Jürgen


On 06/22/2014 01:26 PM, Elias Mårtenson wrote:

Hello Jürgen,

What is the recommended way to configure the paths now? I need to be able to specify the prefix path as well as the path to the workspace when running GNU APL as a library (in Android).

Note that I don't know the path until the program actually starts, but I have access to it before running the init function (the one that is normally called from main()).

Regards,
Elias




reply via email to

[Prev in Thread] Current Thread [Next in Thread]