From: Robert A Duff <bobduff@world.std.com>
Subject: Re: Suprise of comparison result
Date: 1999/10/19
Date: 1999-10-19T00:00:00+00:00 [thread overview]
Message-ID: <wccyaczqrb3.fsf@world.std.com> (raw)
In-Reply-To: 7udvrl$npq$1@nnrp1.deja.com
Robert Dewar <robert_dewar@my-deja.com> writes:
> To test your understanding, what is the result of
>
> -5 mod 3
>
> Most people get this wrong!
Which indicates that (this part of) the language is poorly designed.
But it could be fixed by changing the precedences -- you wouldn't have to
make "-5" be a literal.
It seems to me that unary operators should never be lower precedence
than binary operators. Do you agree with this language design
principle?
- Bob
--
Change robert to bob to get my real email address. Sorry.
next prev parent reply other threads:[~1999-10-19 0:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <37fd7e17.0@news.pacifier.com>
[not found] ` <wccr9j5nat8.fsf@world.std.com>
1999-10-18 0:00 ` Suprise of comparison result Robert Dewar
[not found] ` <7tk5d5$2qu$1@nnrp1.deja.com>
[not found] ` <7tke70$lf4$1@ash.prod.itd.earthlink.net>
1999-10-18 0:00 ` Robert Dewar
1999-10-18 0:00 ` Ted Dennison
1999-10-19 0:00 ` Robert A Duff [this message]
1999-10-21 0:00 ` Robert Dewar
[not found] ` <37FDB8D1.CC4CDB7B@gecm.com>
[not found] ` <37fece61.0@news.pacifier.com>
[not found] ` <37FFED44.6E756E81@callnetuk.com>
1999-10-11 0:00 ` Compiler Warnings (Was: Suprise of comparison result) Nick Roberts
1999-10-18 0:00 ` Suprise of comparison result Robert Dewar
1999-10-18 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox