From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: Suprise of comparison result
Date: 1999/10/18
Date: 1999-10-18T00:00:00+00:00 [thread overview]
Message-ID: <7udvm8$nnv$1@nnrp1.deja.com> (raw)
In-Reply-To: 37fd7e17.0@news.pacifier.com
In article <37fd7e17.0@news.pacifier.com>,
"Steve Doiel" <nospam_steved@pacifier.com> wrote:
> I'm suprised that Ada behaves this way. Both ObjectAda and
> GNAT give the same result.
That's because it is the well defined result of what was
written. You can always be surprised when you use a construct
you do not understand, in this case the problem is not knowing
the meaning of unary minus on modular types.
> If I were programming in C I would not be suprised at this
> result. But in Ada?
Well I guess that's because you understand in C the nature
of unsigned modular types. Well the semantics of modular types
are pretty much identical in C and Ada, so the behavior will
indeed be similar!
Sent via Deja.com http://www.deja.com/
Before you buy.
next parent reply other threads:[~1999-10-18 0:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <37fd7e17.0@news.pacifier.com>
1999-10-18 0:00 ` Robert Dewar [this message]
[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
[not found] ` <wccr9j5nat8.fsf@world.std.com>
1999-10-18 0:00 ` 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
1999-10-21 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