I've just realized that my code is broken in many places...

Suppose I have

cdef class MyClass:
    cdef int val

now I do:

cdef object o = None

cdef int i = (<MyClass?>o).val


And this does not fail, and then the "i" variable have garbage...

Do we really need to allow 'None' when using "?" in the cast??




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