Re: We know what you need, and we'll push it down your throat.

[prev] [thread] [next] [lurker] [Date index for 2006/12/23]

From: Michael Poole
Subject: Re: We know what you need, and we'll push it down your throat.
Date: 19:18 on 23 Dec 2006
peter@xxxxxxx.xxx writes:

>> It is just operator precedence, which already makes multiplication
>> non-commutative if you ignore it.  C also makes "f (b) * c" different
>> than "f c * (b)", although its semantics are less surprising (unless,
>> perhaps, c is parenthesized as well).  Is that hateful in C?
>
> Um, "f (b) * c" in C becomes "c * f (b)" if you reverse the order of the
> arguments to the multiplication operator. "f c * (b)" isn't meaningful.

That is precisely why its semantics are less surprising.  Unless c is
parenthesized, the surprise -- if any -- occurs at parse time rather
than run time.

Michael

Generated at 03:02 on 01 Jan 2007 by mariachi 0.52