comp.lang.ada
 help / color / mirror / Atom feed
From: Martin <martin.dowie@btopenworld.com>
Subject: Re: Extending discriminant types
Date: Fri, 21 Nov 2008 03:44:04 -0800 (PST)
Date: 2008-11-21T03:44:04-08:00	[thread overview]
Message-ID: <c6566b0a-4d09-4573-a2d0-987ff34a6e63@v15g2000yqn.googlegroups.com> (raw)
In-Reply-To: NZlVk.36083$_Y1.11594@bgtnsc05-news.ops.worldnet.att.net

On Nov 20, 10:59 pm, a...@anon.org (anon) wrote:
[snip]
> Now to the RM.
>
> From the RM 95, Annex N:
>
> 38   Subtype.  A subtype is a type together with a constraint, which
> constrains the values of the subtype to satisfy a certain condition.  The
> values of a subtype are a subset of the values of its type.
>
> With that in mind. The definition of the "Base attribute" in Annex K:
>
> 18   S'Base denotes an unconstrained subtype of the type of S. This
>      unconstrained subtype is called the base subtype of the type.
>      See 3.5.
>
> and from RM 3.5
>
> S'Base:  denotes an unconstrained subtype of the type of S. This
>          unconstrained subtype is called the base subtype of
>          the type.
>
> Also Annex K says "For every scalar subtype S:" it does not say for
> "For every scalar subtypes S only:".

But the section heading for 3.5 kind of gives it away doesn't
it..."Scalar Types"! If it applied to other kinds of type then it
would be mentioned in those sections.

And why would K(17) have to include the word "only" when it already
includes "scalar"?

None of the other entries in Annex K use "only" to limit their
applicability - they just state what they are applicable to. Would you
really then read on from K(17) and think K(19) "S'Bit_Order For every
specific record subtype S:" means that 'Bit_Order could apply to
something other than a record subtype??? Or K(181) 'Pred applies to
something other than scalars??? etc

Cheers
-- Martin



  parent reply	other threads:[~2008-11-21 11:44 UTC|newest]

Thread overview: 68+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-15  9:16 Extending discriminant types Stefan Bellon
2008-11-15 18:50 ` Jeffrey R. Carter
2008-11-17 16:30 ` Adam Beneschan
2008-11-18 11:02   ` christoph.grein
2008-11-18 23:24     ` Adam Beneschan
2008-11-19  9:49 ` anon
2008-11-19 10:15   ` christoph.grein
2008-11-19 19:19     ` Georg Bauhaus
2008-11-19 11:38   ` Martin
2008-11-20  7:21   ` anon
2008-11-20  8:30     ` christoph.grein
2008-11-20  8:36       ` Ludovic Brenta
2008-11-20 11:45         ` Georg Bauhaus
2008-11-20 11:46           ` Georg Bauhaus
2008-11-20 23:01             ` anon
2008-11-21 11:54               ` Ludovic Brenta
2008-11-20 14:03           ` Dmitry A. Kazakov
2008-11-20 15:03           ` Robert A Duff
2008-11-20 15:57             ` Stefan Bellon
2008-11-21  0:32               ` Adam Beneschan
2008-11-20 16:11           ` Adam Beneschan
2008-11-20 22:59       ` anon
2008-11-21  0:29         ` Adam Beneschan
2008-11-21  7:25           ` anon
2008-11-21  9:19             ` Jean-Pierre Rosen
2008-11-21 10:11             ` christoph.grein
2008-11-21 12:00             ` Ludovic Brenta
2008-11-21 22:31               ` anon
2008-11-22  0:18                 ` Stefan Bellon
2008-11-23  4:06                   ` anon
2008-11-23  5:39                     ` Georg Bauhaus
2008-11-23  8:00                       ` anon
2008-11-24 10:08                         ` Georg Bauhaus
2008-11-24 22:16                           ` anon
2008-11-25 10:37                             ` Martin
2008-11-25 11:24                               ` Georg Bauhaus
2008-11-25 20:49                                 ` Jeffrey R. Carter
2008-11-25 21:01                                   ` Adam Beneschan
2008-11-25 22:09                                     ` Georg Bauhaus
2008-11-25 22:33                                       ` Jeffrey R. Carter
2008-11-26  0:58                                         ` Adam Beneschan
2008-11-26  1:45                                           ` Jeffrey R. Carter
2008-11-26  9:31                                             ` Martin
2008-11-26  9:38                                               ` Stefan Bellon
2008-11-26  9:48                                                 ` Martin
2008-11-26 10:16                                                   ` Stefan Bellon
2008-11-26 11:05                                                     ` Ludovic Brenta
2008-11-26 11:33                                                       ` Stefan Bellon
2008-11-26 15:49                                                       ` Adam Beneschan
2008-11-26 16:15                                                         ` Ludovic Brenta
2008-11-26 11:10                                                 ` Niklas Holsti
2008-11-23  8:48                     ` Compiler quality (was: Extending discriminant types) Ludovic Brenta
2008-11-24 23:33                       ` anon
2008-11-25  6:54                         ` christoph.grein
2008-11-25 10:01                         ` Ludovic Brenta
2008-11-26 23:34                           ` anon
2008-11-27 10:24                             ` Compiler quality Georg Bauhaus
2008-11-27 14:46                               ` Ludovic Brenta
2008-11-28  9:13                                 ` Martin
2008-11-28 10:28                                   ` Georg Bauhaus
2008-12-02  3:51                                     ` Randy Brukardt
2008-11-22 13:10                 ` Extending discriminant types Gautier
2008-11-24  8:24                 ` christoph.grein
2008-11-21  6:11         ` christoph.grein
2008-11-21 21:12           ` Jeffrey R. Carter
2008-11-22 16:41             ` sjw
2008-11-21 11:44         ` Martin [this message]
2008-11-20  9:55     ` Martin
replies disabled

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