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:
|
- Re: [Bug-apl] using c libs in apl? Peter Teeson
- Re: [Bug-apl] using c libs in apl? Elias Mårtenson
- Re: [Bug-apl] using c libs in apl? Juergen Sauermann
- Re: [Bug-apl] using c libs in apl? Xiao-Yong Jin
- Re: [Bug-apl] using c libs in apl? Juergen Sauermann
- Re: [Bug-apl] using c libs in apl? Elias Mårtenson
- Re: [Bug-apl] using c libs in apl? Juergen Sauermann
- Re: [Bug-apl] using c libs in apl? Elias Mårtenson
- Re: [Bug-apl] using c libs in apl? Juergen Sauermann
- Re: [Bug-apl] using c libs in apl? Elias Mårtenson
- Re: [Bug-apl] using c libs in apl? Juergen Sauermann
- Re: [Bug-apl] using c libs in apl? Elias Mårtenson
- Re: [Bug-apl] using c libs in apl? Xiao-Yong Jin
- Re: [Bug-apl] using c libs in apl? Elias Mårtenson
- Re: [Bug-apl] using c libs in apl? Xiao-Yong Jin
- Re: [Bug-apl] using c libs in apl? Christian Robert
- Re: [Bug-apl] using c libs in apl? Juergen Sauermann
- Re: [Bug-apl] using c libs in apl? Elias Mårtenson