if <assignment>:

Greg Ewing see_reply_address at something.invalid
Sun Dec 1 23:25:46 EST 2002


maney at pobox.com wrote:

> The
> op-assign (+=, et. al.) were largely present to take advantage of PDP
> instructions that could do that to most any two operands in one op;


People keep saying that, but I don't think it's true.
Didn't the first C implementation pre-date the PDP-11
one?

I think it's more likely that C and the PDP-11 both
have these sorts of operations for the same reason --
that they're just useful things to have.

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg




More information about the Python-list mailing list