From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9c9db81a63ddf1fe X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!p13g2000yqh.googlegroups.com!not-for-mail From: AdaMagica Newsgroups: comp.lang.ada Subject: Re: extended membership tests Date: Fri, 1 Apr 2011 00:03:40 -0700 (PDT) Organization: http://groups.google.com Message-ID: <0a58c4e0-f4b5-4cab-8aa7-7ab39337664e@p13g2000yqh.googlegroups.com> References: <7dc23d58-4a48-4444-90cd-7f9786b19aad@i14g2000yqe.googlegroups.com> <5ab2b5ee-d08e-4e5e-93a7-808636f3cfa0@p16g2000yqb.googlegroups.com> <9e379bf0-ade3-4694-83d3-60d99f54bdf5@q36g2000yqn.googlegroups.com> NNTP-Posting-Host: 80.156.44.178 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1301641421 23573 127.0.0.1 (1 Apr 2011 07:03:41 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 1 Apr 2011 07:03:41 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p13g2000yqh.googlegroups.com; posting-host=80.156.44.178; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:19621 Date: 2011-04-01T00:03:40-07:00 List-Id: On 1 Apr., 08:33, Dan wrote: > Yannick suggested making X in Y illegal, when X and Y have the same > type, to avoid the > confusion. =A0I agree with that suggestion. I also agree. I do not see why we need choice_expression and choice_relation RM 4.4(2.1/3,2.2/3). Wouldn't simple_expression suffice in (3.2/3)? membership_choice ::=3D simple_expression | range | subtype_mark Are there any sensible uses for (boolean) choice_relations? I might imagine some use of choice_expressions for modular types. X in A > B and C | D .. E | Subrange ??? doesn't look very sensible to me Examples please.