[Cython] broken array declarators when size is an expression

Lisandro Dalcin dalcinl at gmail.com
Tue Nov 18 16:34:48 CET 2008


On Tue, Nov 18, 2008 at 10:39 AM, Dag Sverre Seljebotn
<dagss at student.matnat.uio.no> wrote:
> Idea: I was thinking of perhaps a transform that ran through the tree
> and replaced anything that is a compile-time expression with its literal
> result, i.e.

But this will not work with external definitions. For example, in MPI
I have to deal with C constants like MPI_MAX_OBJECT_NAME. I declare
all them as external enumerations, and there is no way to tell Cython
de actual value (as it depend on the mpi.h header, and expected to be
different for each MPI implementation).


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


More information about the Cython-dev mailing list