On 2006-mar-01, at 19:53, Stephen Compall wrote:
Wed Mar  1 13:41:22 CST 2006  Stephen Compall <[EMAIL PROTECTED]>
  * demonstrate differing behavior between foreign-dyn expansions

> ;; free-translated-object must not be called when there is an etf, but
> ;; they answer *runtime-translator-form*

I think this isn't a good idea. Here's an example:

(defmethod expand-to-foreign-dyn (value var body (name (eql :string)))
  (if <string's size is appropriate for stack allocation>
      `(with-foreign-string (,var ,value)
         ,@body)
      *runtime-translator-form*))

Surely we want free-translated-object to be called in this case.

Or did I miss something?

--
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/
Equipa Portuguesa do Translation Project
http://www.iro.umontreal.ca/translation/registry.cgi?team=pt

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

Reply via email to