Actually you will also need to have the handle of libj.so loaded in memory by the front-end, but both are inaccessible from J.
On Tue, Jul 24, 2018, 5:48 AM Sergey Kamenev <[email protected]> wrote: > Hi, folks! > > I need load shared library (.so) and execute from her my custom J function. > I was decide use for this JDo function (from libj.so). > > JDo function need session ID (first parameter). How can I know id for > current running J-session? > > Details: > > I have J-program. > From this program I'm use shared library. > I need function from shared library which used pointer to my J function. > But is unpossible know C-style pointer to my J function - J is > interpretator. > > I was decide use JDo from libj.so for call my function. > But I need my variables, my namespaces. > > If I use Jinit from libj.so then my variables, my namespaces still be not > accessible. > May be good variant is using JDo with my function as param. > But I need know current session ID for JDo for access my varibles from > main script. > > > Nice day! > Sergey Kamenev > Moscow, Russia > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
