From: Raymond Toy
Subject: Re: Calling SBCL from C with array arguments
Date: 
Message-ID: <4n1xvpbqlt.fsf@edgedsp4.rtp.ericsson.se>
>>>>> "Clemens" == Clemens Heitzinger <········@rainbow.studorg.tuwien.ac.at> writes:

    Clemens> Having written some functions in SBCL, I want to call them from a C++
    Clemens> (or Fortran90, for that matter) program.  The arguments are arrays of

That, I think, is a bit problematical.  It will be very hard for a C++
*program* to call functions in SBCL.  But if you have C++ *routines*
that want to call functions in SBCL, you might be able to do that.

    Clemens> to the CL code and get back three arrays.  How can I do this in SBCL
    Clemens> (or CMUCL)?  The documentation is a bit sparse on this matter.  Any
    Clemens> help is appreciated.

The CVS versions of CMUCL (see the snapshots directory in the download
area from www.cons.org/cmucl), there is support for callbacks so
foreign functions can call Lisp functions.  It's documented in the
CMUCL User's manual with examples.

Perhaps this will do what you want.

Ray