[Pyrex] enum regression 0.9.5?

Lenard Lindstrom len-l at telus.net
Tue Jan 30 18:47:27 UTC 2007


Greg Ewing wrote:
> Lenard Lindstrom wrote:
>> So to allow int/enum comparisons in Pyrex means adding a C cast to 
>> the generated code. Though C++ allows it, the behaviour is likely 
>> undefined.
>
> Well, gcc seems to allow it with no warning, and if
> it's undefined, then adding a cast isn't going to
> make it any more defined.
>
> If anyone finds a C++ compiler that won't compile
> it without a cast, let me know.
>  
You're right. I was having a flash-back to when I dealt with the int to
enum assignment issue :-)


-- 
Lenard Lindstrom
<len-l at telus.net>







More information about the Pyrex mailing list