|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] using c libs in apl? |
Date: | Wed, 8 Feb 2017 17:50:36 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
Hi Elias, the latest libapl API (libapl.h) may give some ideas. It uses a 2-step approach like GNU APL internally: first create a value with a given shape/rank and then set the elements of its ravel. The value must be released explicitly when no longer needed. This is because libapl is a C interface not a C++ interface. Therefore the Value_P magic cannot be used in a C library. In C++ things are much simpler because you could use Value_P objects, which release the underlying APL value automatically. /// Jürgen On 02/08/2017 05:33 PM, Elias Mårtenson
wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |