[Pyrex] enum regression 0.9.5?

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Jan 30 00:58:30 UTC 2007


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.

--
Greg



More information about the Pyrex mailing list