On Aug 24, 2009, at 1:26 PM, Joachim Saul wrote: > Hello all, > > as a happy Pyrex user for more than six years I recently got > interested > in Cython as well. So far adopting codes to Cython has in most cases > been quite straightforward. In fact it even resulted in > improvements due > to some errors, which Pyrex had not complained about and which were > detected by Cython. > > However, for the following minimalistic example the resulting C code > doesn't compile: > > #### _stypes.pxd #### > ctypedef public class Time [type MyTime_Type, object MyTimeObject]: > cdef public double seconds > > ctypedef public class Event [type MyEvent_Type, object MyEventObject]: > cdef public Time time > > #### _stypes.pyx #### > ctypedef public class Time [type MyTime_Type, object MyTimeObject]: > def __init__(self, seconds): > self.seconds = seconds > > ctypedef public class Event [type MyEvent_Type, object MyEventObject]: > def __init__(self, Time time): > self.time = time > > #### > > Compilation to C works without complaint, but the compilation of the > resulting C code gives errors like
[...] Thanks for the bug report! I bet our header-ordering code lacks some constraint, but I'm not sure how hard it will be to fix. We are tracking it at http://trac.cython.org/cython_trac/ticket/355 - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
