comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Fussy Standard: what is modulo Address?
Date: Wed, 22 Jan 2003 16:40:56 GMT
Date: 2003-01-22T16:40:56+00:00	[thread overview]
Message-ID: <wccn0lt2l47.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: mailman.12.1043223160.4961.comp.lang.ada@ada.eu.org

"Grein, Christoph" <christoph.grein@eurocopter.com> writes:

> > 13.3.22-23. "For a prefix X that denotes a subtype or object:
> > X'Alignment... Address modulo the Alignment".
> > 
> > The Standard seems to not explain what is "Address modulo".
> > 
> > It can be:
> > 
> > 1. The integer mathematical operation fpr 
> > System.Storage_Element.Integer_Address.
> > 
> > 2. Operation "mod" for System.Address, defined also in System.
> > 
> > Moreover the Standard probably does not say anything about relations of 
> > these two operations (they should be the same as people seem to tend to 
> > naturally consider these the same).
> > 
> > We should correct it, yes?
> 
> You seem to have point here. Report it to ada-comment@ada-auth.org.

I don't think so.  "Modulo" means the "mod" operator for
System.Address.  This is defined in 13.7.1(8).  The AARM states this
explicitly in 13.3(24.b) and 13.7.1(11.b).

The manual does not define the semantics of this "mod" operator.  How
could it?  Address is just a private type provided by the implementer --
it could be anything.

- Bob



  reply	other threads:[~2003-01-22 16:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-22  8:05 Fussy Standard: what is modulo Address? Grein, Christoph
2003-01-22 16:40 ` Robert A Duff [this message]
2003-01-22 20:21 ` Victor Porton
2003-01-22 23:06   ` Simon Wright
2003-01-23  0:23   ` Robert A Duff
2003-01-23 13:12     ` Wes Groleau
2003-01-23 14:10       ` Robert A Duff
2003-01-23  0:43 ` Victor Porton
2003-01-23 14:06   ` Robert A Duff
  -- strict thread matches above, loose matches on Subject: below --
2003-01-23  6:53 Grein, Christoph
2003-01-22  7:33 Victor Porton
replies disabled

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