On Friday 29 January 2010 20:58:44 Robert Bradshaw wrote: > > I don't find that a good > > idea - it will break existing code at best. Why was this chosen over > > something like "cython.new()"? > > How would cython.new be used to invoke a constructor? > > cdef extern from "a.h": > cdef cppclass A: > A(int, int) > > cdef *A = cython.new(A(2,3)) #? > cdef *A = cython.new(A, 2, 3) #?
what about: cdef *A = cython.new(A)(2,3) ? cheers, sebastien. _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
