Am 05/12/2008 10:00 PM schrieb Lisandro Dalcin:
> The example above is working for me (not I'm following cython-devel
> repo). Give  a try
> 
> cdef extern from *:
> 
>     ctypedef struct A # like a forward declaration ?
>     ctypedef struct B # like a forward declaration ?
> 
>     ctypedef struct A:
>         B* b
> 
>     ctypedef struct B:
>         A* a
> 
> cdef A tmp_a
> cdef B tmp_b
> 
> tmp_a.b = &tmp_b
> tmp_b.a = &tmp_a

That works. Thank you!



Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to