comp.lang.ada
 help / color / mirror / Atom feed
From: bobduff@world.std.com (Robert A Duff)
Subject: Re: DECAda/VMS - calling GETJPI
Date: 1996/06/05
Date: 1996-06-05T00:00:00+00:00	[thread overview]
Message-ID: <DsJ6vu.Ev6@world.std.com> (raw)
In-Reply-To: dewar.833924742@schonberg


Robert is correct -- a type conversion of -1 to a modular type will
raise C_E.  -1 and 255 are *not* the "same mathematical integer".

Mike is, perhaps, confused between converting to a *type* and converting
to a *subtype*.  4.6(51) says that when converting to a subtype, you
first convert to the type, and then do a constraint check.  This can,
indeed, raise an exception when converting to a non-modular *subtype*,
such as Integer.  However, when converting to a *type*, the only
exceptions are when the target type is modular.

Robert's description of the history is correct: an earlier version of
Ada 9X did what Mike says, but it was changed.  (Robert has a better
memory than I as to which meeting that decision was made at, and where
the meeting was held.)

This language change explains why the Rationale is wrong -- it was
simply not updated correctly to match the RM in this case.

Nobody is actively working on the Rationale at this point, as far as I
know, so this bug in the Rationale will remain unfixed.

Bugs in the RM, on the other hand, are addressed by the ARG.  There are
instructions at the front of the RM telling where to send any comments
on the RM, so that the ARG will see them.

- Bob




  reply	other threads:[~1996-06-05  0:00 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-06-03  0:00 DECAda/VMS - calling GETJPI Alan Paterson
1996-06-03  0:00 ` Stuart Palin
1996-06-03  0:00   ` Michael F Brenner
1996-06-03  0:00     ` Robert Dewar
1996-06-04  0:00       ` Ken Garlington
1996-06-06  0:00         ` Robert Dewar
1996-06-04  0:00       ` Michael F Brenner
1996-06-04  0:00         ` Robert Dewar
1996-06-04  0:00           ` Michael F Brenner
1996-06-04  0:00             ` Robert Dewar
1996-06-04  0:00             ` Robert Dewar
1996-06-05  0:00               ` Robert A Duff [this message]
1996-06-05  0:00                 ` Robert Dewar
1996-06-05  0:00               ` Fergus Henderson
1996-06-05  0:00                 ` Robert A Duff
1996-06-05  0:00               ` Wraparound on modular conversion (was: DECAda/VMS - calling GETJPI) Tucker Taft
1996-06-05  0:00                 ` Robert Dewar
1996-06-05  0:00             ` DECAda/VMS - calling GETJPI Adam Beneschan
1996-06-07  0:00               ` Norman H. Cohen
1996-06-11  0:00                 ` Adam Beneschan
1996-06-03  0:00 ` Mats Weber
1996-06-03  0:00 ` Ken Garlington
  -- strict thread matches above, loose matches on Subject: below --
1996-06-06  0:00 George Haddad
1996-06-07  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