Yes, too nested ?: operators should work. We have to contemplate at
least on the three cases size_t in (uint, ulong, ulonglong).

 I'll work on it and push a patch.

On Wed, Feb 11, 2009 at 9:51 PM, Dag Sverre Seljebotn
<[email protected]> wrote:
> What about two nested ?-operators?
>
> Dag Sverre Seljebotn
> -----Original Message-----
> From: Lisandro Dalcin <[email protected]>
> Date: Wednesday, Feb 11, 2009 10:59 pm
> Subject: Re: [Cython] size_t problem
> To: [email protected]: [email protected]
>
> On Wed, Feb 11, 2009 at 6:37 PM, Robert Bradshaw
>><[email protected]> wrote:
>>>
>>> I think the fix should be simple (I'll look at it later today, I'm
>>> off to catch the bus) but if not, lets roll it back.
>>>
>>
>>Robert, IMHO, the below code is wrong...
>>
>>c_size_t_type =      CSizeTType(6, 1, "(sizeof(size_t) =sizeof(unsigned long) 
>>? T_ULONG : T_ULONGLONG)")
>>
>>what would happend if size_t is unsigned int, and sizeof(unsigend int)
>>< sizeof(unsigend long). You will end-up returning garbage...
>>
>>As I said in previous mail, I believe the only sane way to fix this is
>>to use a property...
>>
>>
>>
>>--
>>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
>>
>
>
> _______________________________________________
> Cython-dev mailing list
> [email protected]
> http://codespeak.net/mailman/listinfo/cython-dev
>
>



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