[Pyrex] Pyrex and C++

Michael JasonSmith mpj17 at student.canterbury.ac.nz
Mon Nov 17 21:45:06 CET 2003


On Mon, 2003-11-17 at 17:36, Greg Ewing wrote:
> Michael JasonSmith <mpj17 at student.canterbury.ac.nz>:
> 
> > C (well, gcc...) allows you to assign to a "non l-value", as so
> > 	foo - 3 = bar;
> 
> Er... no, not even C is mad enough to allow *that*!
> (I tried it, just to be sure, and gcc complains.)
That's odd, because I can remember Introduction to C students doing it
by mistake and getting confused that it worked.

[Michael checks Info on GCC]

Oh, that's what I was thinking of.
	(foo ? bar : wibble) = blarg;
In the foggy recesses of my brain it got mixed up with some Haskell or
some  similar abomination.  My apologies to one and all :(


-- 
Michael JasonSmith                                   http://www.ldots.org/





More information about the Pyrex mailing list