comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@gnat.com (Robert Dewar)
Subject: Re: System.Address'Size - not a static integer expression?
Date: 14 Apr 2002 12:59:32 -0700
Date: 2002-04-14T19:59:32+00:00	[thread overview]
Message-ID: <5ee5b646.0204141159.51dc252d@posting.google.com> (raw)
In-Reply-To: 3CB74D37.973A4C19@despammed.com

Wes Groleau <wesgroleau@despammed.com> wrote in message news:<3CB74D37.973A4C19@despammed.com>...

> In the Ada RM it doesn't.  But to a lot of people
> (and formerly, to me) that's what it meant.

Only very casually, because, as I noted before "known at
compile time" is obviously a recursively undecidable
predicate, and if you think for a moment, you know that
no language feature could be based on a RU predicate.

> It wasn't in 4.9  For me to prove I'm right, I'd have to
> find it again, which would be hard.  For you to prove I'm
> wrong, you'd have to make me read every paragraph in the 
> RM and agree it isn't in there, which would be even 
> harder. So I think we should drop it.

Not with you leaving FUD on this issue. I know the RM well
in this area, and can assure you that you did not find what
you remember. Given your confusion on the meaning of static
I would say that you should hesitate to trust your memory
here. Once again, it is of COURSE the case that 'Size is
sometimes static, and sometimes non-static. There is no
statement in the RM that contradicts this, and if there
were such a statement, it would be an obvious (and very
visible mistake), so the fact that no one has pointed out
such a mistake in the ongoing review process should really
help to convince you that your memory is faulty here.

> > > So you are saying that it IS in this subset
> > > if the prefix is a static scalar subtype?
> > 
> > Yes :-) several times
> 
> If that's true, both GNAT and Apex were wrong to reject
> the code I was speaking of.  And I severely 
> misinterpreted the RM passage that seemed to justify the 
> rejection.

No, the type in question was not a static scalar subtype!
If you still don't understand this, reread the definition 
in 4.9.



  reply	other threads:[~2002-04-14 19:59 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-06 17:57 System.Address'Size - not a static integer expression? Vadim Godunko
2002-03-07  1:21 ` Robert Dewar
2002-03-07 13:56   ` Wes Groleau
2002-03-08 18:34     ` FGD
2002-03-08 19:07       ` Larry Kilgallen
2002-03-08 19:43       ` Wes Groleau
2002-04-08  4:57         ` Robert Dewar
2002-04-08 15:17           ` Wes Groleau
2002-04-10  1:54             ` Robert Dewar
2002-04-10 17:41               ` Wes Groleau
2002-04-10 18:29                 ` Darren New
2002-04-12 20:20                 ` Robert Dewar
2002-04-12 21:10                   ` Wes Groleau
2002-04-14 19:59                     ` Robert Dewar [this message]
2002-04-14 20:01                     ` Robert Dewar
2002-04-15 15:13                       ` Wes Groleau
2002-04-15 19:57                         ` Randy Brukardt
2002-04-17  3:22                           ` Robert Dewar
2002-04-17  3:11                         ` Robert Dewar
2002-04-17 18:27                           ` Wes Groleau
2002-04-19 14:06                             ` Robert Dewar
2002-04-19 15:05                               ` Wes Groleau
2002-04-20  2:26                                 ` Robert Dewar
2002-04-20  5:11                                 ` Robert Dewar
2002-04-20 16:50                                   ` Darren New
2002-04-22  9:20                                   ` Ole-Hjalmar Kristensen
2002-04-22 13:24                                     ` Robert Dewar
2002-04-22 13:59                                       ` Ole-Hjalmar Kristensen
2002-04-22 13:34                                     ` Robert Dewar
2002-04-22 14:02                                       ` Ole-Hjalmar Kristensen
2002-04-22 16:11                                         ` Jean-Pierre Rosen
2002-04-22 23:57                                         ` Robert Dewar
2002-04-08  0:43 ` Nick Roberts
replies disabled

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