You can't access the refcount of a J noun through the J API and I doubt that we would want to provide such a facility. I think the workarounds for this lack are simple and that the potential problems and complexity introduced by having it are not worthwhile.

You seem to be interested in a very tight coupling and so far this has not been our orientation.

The ultimate and complete solution to this line of thinking and design is to have the J source. This allows complete integration at the most intimate level. We have clients who work at this level but it seems unnecessary for most applications.

----- Original Message ----- From: "Jack Andrews" <[EMAIL PROTECTED]>
To: "Programming forum" <[email protected]>
Sent: Saturday, July 14, 2007 6:01 AM
Subject: Re: [Jprogramming] J API


eric wrote:
2. the J API functions can run arbitrary J sentences and check results
but JDo doesn't seem to return the result of the sentence... can i get
this some other way?  i've been working around it be prefixing
sentences with sprintf("mylocal=.%s"...) and JGetM mylocal, but
sometimes %s is not assignable.

The key thing that is missing in J601 is the ability of J to call a C
function through the C function memory address.
yes, using the existing mechanism is cumbersome.

and the additionaly facility has already been promised for the 602 release.
sorry, i couldn't find this in the forums.
is there a 602 page on the wiki or elsewhere?

also, what about noun/memory management?
can C code access the refcount of a noun?


jack
----------------------------------------------------------------------
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