On 4/7/07, bill lam <[EMAIL PROTECTED]> wrote:
kamakura wrote:
> Does J support dynamic loading C or Fortran object file? If so, I would
> like to know the syntax for invoking C or Fortran subprograms. I want a
> simple J function with arguments of 'function name' and function arguments.
I think that J does not support dynamic loading dll or so directly and I wish
that this can be supported in the next beta.
I believe you intended to say that J does not directly support dynamic
loading of object file formats other than shared library formats.
Of course, as you indicated, the 15!: series
(http://www.jsoftware.com/help/dictionary/dx015.htm) do support dynamic
loading of PEX .DLLs (windows) or ELF .SOs (linux and perhaps mac).
If you have code from some other language which dynamically loads other
file formats (such as COFF .Os), you could have that code made available
to J in an appropriate PEX or ELF file and then your code could dynamically
load whatever other formats for J (presumably implementinging a system
modeled after 15!:).
If you have a good candidate for inclusion in some future version of J
(plausibly simple, and at least hinting at a model for clean interfaces),
send it to Roger Hui -- I'm sure he'd be happy with your participation.
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm