comp.lang.ada
 help / color / mirror / Atom feed
  • [parent not found: <wccr9j5nat8.fsf@world.std.com>]
  • [parent not found: <37FDB8D1.CC4CDB7B@gecm.com>]
  • * Re: Suprise of comparison result
           [not found] <37fd7e17.0@news.pacifier.com>
                       ` (2 preceding siblings ...)
           [not found] ` <37FDB8D1.CC4CDB7B@gecm.com>
    @ 1999-10-18  0:00 ` Robert Dewar
      3 siblings, 0 replies; 8+ messages in thread
    From: Robert Dewar @ 1999-10-18  0:00 UTC (permalink / raw)
    
    
    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.
    
    
    
    
    ^ permalink raw reply	[flat|nested] 8+ messages in thread

  • end of thread, other threads:[~1999-10-21  0:00 UTC | newest]
    
    Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
    -- links below jump to the message on this page --
         [not found] <37fd7e17.0@news.pacifier.com>
         [not found] ` <7tk5d5$2qu$1@nnrp1.deja.com>
         [not found]   ` <7tke70$lf4$1@ash.prod.itd.earthlink.net>
    1999-10-18  0:00     ` Suprise of comparison result Robert Dewar
    1999-10-18  0:00       ` Ted Dennison
    1999-10-19  0:00       ` Robert A Duff
    1999-10-21  0:00         ` Robert Dewar
         [not found] ` <wccr9j5nat8.fsf@world.std.com>
    1999-10-18  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
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox