2006/10/15, Mark Hoemmen <[EMAIL PROTECTED]>:
As such, we would like to include complex number support in lisp-matrix.
However, CFFI doesn't support passing C structs by value, so we can't
implement a complex number interface in CFFI using DEFCSTRUCT.

A number of lisps, including ECL and SBCL, do not support passing
structures by value. See for instance the SBCL manual page:
http://www.sbcl.org/manual/The-alien_002dfuncall-Primitive.html#The-alien_002dfuncall-Primitive

The reason, I believe, is that structure arguments complicate a lot
the calling of a function, in terms of registers used for in and out
values, and even the conventions differ between compilers on the same
platform.

Juanjo
_______________________________________________
cffi-devel mailing list
cffi-devel@common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel

Reply via email to