[plt-scheme] creating long double/complex ctype in the ffi

From: Eli Barzilay (eli at barzilay.org)
Date: Fri Aug 8 09:22:43 EDT 2008

On Aug  8, Atmam Ta wrote:
> Hi,
> I am trying to create a plt-scheme interface to a c library that
> uses complex numbers as arguments. The complex type is either long
> double or the standard c++ complex value. Does anyone have any idea
> how I could create these ctypes in the ffi?

The foreign interface has only simple C types, no C++.  If you can
reach it from C, then the easiest way would be to write a small C file
that does the translation to the C++ types and glue that in.

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!

Posted on the users mailing list.