[cffi-devel] Re: %expand-type-to-foreign-dyn vs *runtime-translator-form*

Luís Oliveira luismbo at gmail.com
Tue Mar 21 12:57:59 UTC 2006


Stephen Compall <s11 at member.fsf.org> writes:
> One can also specify in the interface documentation that by merely
> defining an e-t-f, even if it answers *runtime-translator-form*, you are
> short-circuiting the alloc-param and free mechanism for dynamic-extent
> expansions, and therefore must either not do so, or always be sure to
> define a foreign-dyn expansion as well.  This is option 3 [...]

I think *runtime-translator-form* should be a translate-type-to-foreign
call when expand-type-to-foreign is called directly and a
m-v-b/t-t-t-f/unwind-protect/f-t-t-o thingie when it's called through
expand-type-to-foreign-dyn.

-- 
Luís Oliveira
luismbo (@) gmail (.) com
Equipa Portuguesa do Translation Project
http://www.iro.umontreal.ca/translation/registry.cgi?team=pt




More information about the cffi-devel mailing list