[Ecls-list] RUN-PROGRAM/FFI

Nicolas Neuss Nicolas.Neuss at iwr.uni-heidelberg.de
Wed Nov 16 08:31:03 UTC 2005


Juan Jose Garcia Ripoll <lisp at arrakis.es> writes:

> Just define
> 	(defun vector-sap (a)
> 	  (ffi:c-inline (a) (:object) :pointer-void
> 		"(#0)->array.self.ch" :one-liner t))
> somewhere and probably add a compiler-macro which expands into a
> c-inline form. The rest should work similarly.

Works fine.

> Hmmm, the problem is that all "-eval" statements are computed before
> entering the toplevel and there was a (in-package "cl-user") statement
> right after this. I've fixed this in CVS.

Very good.

>> P.S.: I have been bitten earlier by the fact that ECL returns LONG-FLOAT
>> when asked for the array-element-type of a uniform DOUBLE-FLOAT array.
>> This is allowed by the spec, however I think that the name DOUBLE-FLOAT is
>> more meaningful (relating to what is the actual length of the number).  It
>> is also used by Allegro and CMUCL (as much as I see only GCL uses
>> LONG-FLOAT).  Probably, a change would be problematic, but nevertheless I
>> would be interested in opinions about this issue.
>
> I see no problem in changing this. Looks also a bit more consistent with
> the spec, as it specifies that single-float and double-float are the
> numeric types, while the others are synonyms.

That's nice to hear.  Then I could take ECL out from a #+(or ecl gcl).

> Juanjo

Nicolas.




More information about the ecl-devel mailing list