[cffi-devel] translate-type-from-foreign

Sean rosssd at gmail.com
Thu Apr 12 14:05:43 UTC 2007


Hi all,
 I've noticed that in the upgrade from cffi 0.9.1 to 0.9.2 that there 
 were a few lines removed from early-types.lisp namely :


-;; Default Translators for foreign-struct-type
-(defmethod translate-type-from-foreign (value (type
foreign-struct-type))
-  (translate-from-foreign value (name type)))
-
-(defmethod translate-type-to-foreign (value (type foreign-struct-type))
-  (translate-to-foreign value (name type)))


I've been specialising translate-to-foreign to automatically convert c
structures to their equivalent lisp counterparts but without these lines
this obviously no longer works. 

Was this removal deliberate and if so what is the preferred way to
accomplish this?


Cheers,
  Sean.

-- 
...Please don't assume Lisp is only useful for Animation and Graphics,
AI, Bioinformatics, B2B and E-Commerce, Data Mining, EDA/Semiconductor
applications, Expert Systems, Finance, Intelligent Agents, Knowledge
Management, Mechanical CAD, Modeling and Simulation, Natural Language,
Optimization, Research, Risk Analysis, Scheduling, Telecom, and Web
Authoring just because these are the only things they happened to list.

Kent Pitman.





More information about the cffi-devel mailing list