Problems with nested structs and the newer cffi
Luís Oliveira
loliveira at common-lisp.net
Wed Apr 24 10:15:23 UTC 2013
On Wed, Apr 24, 2013 at 9:35 AM, Willem Rein Oudshoorn
<woudshoo at xs4all.nl> wrote:
> (defctype struct-index-time (:struct git-index-time))
>
> And use as type:
>
> struct-index-time
>
> The `translate-from-foreign` is not called and I end up
> with untranslated values.
>
> I thought that (defctype ...) worked as a typedef and
> naively expected the type translation to still work.
>
> Is this as expected?
Your expectations are correct. That should work. If you could open a
launchpad bug with a small test case that'd be very helpful.
Cheers,
--
Luís Oliveira
http://r42.eu/~luis/
More information about the cffi-devel
mailing list