On Wed, Oct 15, 2008 at 8:34 PM, Greg Ewing <[EMAIL PROTECTED]> wrote: > I thought about that too, but something I had in mind > for Pyrex in the future was that > > p = Point() > > where Point is a struct type would be shorthand for > > p = <Point *>malloc(sizeof(Point)) > > so I think I'd prefer to reserve the constructor > syntax for that.
And how are you going to free the memory? Are you thinking about C++ semantics for stack-allocated class instances with user-defined/Cython-syntetized constructors/destructors? -- Lisandro Dalcín --------------- Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC) Instituto de Desarrollo Tecnológico para la Industria Química (INTEC) Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET) PTLC - Güemes 3450, (3000) Santa Fe, Argentina Tel/Fax: +54-(0)342-451.1594 _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
