On Mon, Dec 14, 2009 at 7:20 PM, Greg Ewing <[email protected]> wrote:
> Lisandro Dalcin wrote:
>
>> Well, at least in Cython, an enum is not compatible with all scalar
>> types, just with integral types.
>
> That won't matter if you tell Pyrex that the opaque type
> is an int.

I have to insist: I have VERY good reasons to not tell Cython/Pyrex
that the opaque type is an int. Instead, I REALLY need to tell that
they are pointers, and not just a typedef to void*, but to DIFFERENT,
INCOMPATIBLE, fake structures.

Why am I being so pedantic about this? Because if I tell Cython/Pyrex
that various MPI opaque types are 'int', and the underlying MPI
implementation also uses 'int' for defining (using typedef's ) the
various different handle types, then I do not have ANY guard against
mistakes (I mean, like passing a actual int instead of MPI_Comm in
some call).


Greg, please tell me, what could go wrong with accepting external
definition for except clauses? I cannot imagine any potential issue,
but your "resistance" to my use case makes my think that you have some
concerns about my request...


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