On Thu, Nov 27, 2008 at 6:46 PM, Dag Sverre Seljebotn <[EMAIL PROTECTED]> wrote: > Stefan Behnel wrote: >> Hi, >> > Proposal: New modifier, "proto". I.e. > > cdef proto int foo(int a, int b): > cdef int c > cdef int b > > will embed the signature/variables on a pure > > def foo(a, b): ... >
Definitely +1 for me. Your idea is really great. Howerver, I would really prefer 'prototype' as the magic keyword Could this be extended to class definitions and perhaps their methods? -- 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
