I don't think you can use JDo in the current session from the current
session. It is intended to be used in another J session.

Are you sure this is what you want to do? Why not just run the expression
you want to run?

On Mon, Jul 23, 2018 at 5:48 PM, Sergey Kamenev <jsof...@inetstar.ru> 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

Reply via email to