[Pyrex] More on enums in 0.9.5.1a

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Feb 6 22:54:25 UTC 2007


Eric Huss wrote:

> i = e + 1		# Fails.

Hmmm, it seems you're right, C++ allows this without
warning, although it doesn't seem very useful. It
would be more useful IMO to allow

   e = e + 1

but that isn't allowed because the result is of type
int instead of enum.

I'll see about fixing this.

--
Greg



More information about the Pyrex mailing list