bug-apl
[Top][All Lists]
Advanced

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

Re: libapl with c and python


From: Dr . Jürgen Sauermann
Subject: Re: libapl with c and python
Date: Fri, 10 Jun 2022 20:53:53 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

Hi,

not sure, really.

I suppose there may be a difference between .apl workspaces and .xml workspaces being )COPYd.

)LOAD and )COPY of .apl files works by feeding them line by line from a file into the interpreter.
In the libapl case the frontend (python or erlang) has to perform this function if needed.

)LOAD and )COPY of .xml files loads a snapshot of the workspace into the interpreter. This
works directly with the .xml files in one go as opposed to line by line. Probably better with
libapl.

Best Regards,
Jürgen


On 6/10/22 7:41 PM, enztec@gmx.com wrote:
Hi
are )copy and )load suppose to work with libapl?

)copy and )load work with no problems on a xxx.apl file from inside an apl ws or from inside a parent apl script

but only gives )dump message with libapl in python script or c program and nothing shows with )fns or )vars

i tried  both apl_exec and apl_command with libapl in c program and gnu_apl.exec and gnu_apl.command with libapl in python script

using )wsid shows that using )load changes the wsid name and )vars and )fns of original coding are gone as expected
using )wsid shows that using )copy does not change wsid as expected and )vars and )fns show the vars and fns originally there are unchanged as expected

thanks



reply via email to

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