On Wed, May 13, 2009 at 1:06 PM, Dag Sverre Seljebotn
<[email protected]> wrote:
> Lisandro Dalcin wrote:
>>
>> The only possibility I can imagine up to now is something like:
>>
>> cdef void callspec("something") myfunc(): pass
>>
>> cdef void (callspec("something") *p)()
>>
>> p = myfunc
>
> +1 from me (if the decorator is also available).

Then, what should happen with this code

@cython.callspec("foo")
cdef void callspec("bar") myfunc(): pass

It seems it should fail, right ? However, perhaps it should pass if
the callspec's are the same ?


> As long as I'm not the
> one who has to make the parser accept it :-)
>

In general, the problem is not to make the Cython parser accept and
and do the right thing with VALID syntax... the hard part is to make
it fail nicely (I mean, inform about the errors and not crashing) for
INVALID syntax...



-- 
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

Reply via email to