Well, I'm hacking on supporting C++ complex, but have some questions Robert: why did you bothered about using 'infix' operators instead of using macros when c99 complex is on? Just to generate more readable C code? Could this be changed to always use the macros?
I'm facing some trouble... I'm adding a 'cxx_complex' directive, but I'm not sure what to do in these situations (I'm thinking in a C++ compiler supporting C99 complex) 1) What to do here? Use struct-based complex? compiler: C c99_complex=0 cxx_complex=1 2) What to do here? Use struct-based complex? compiler: C++ c99_complex=1 cxx_complex=0 3) What to do here? Use C99 complex? compiler: C c99_complex=1 cxx_complex=1 4) What to do here? Use C++ complex? compiler: C c99_complex=1 cxx_complex=1 -- 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
