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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Redefining "in" "operator" Date: Mon, 5 Feb 2018 17:39:22 +0100 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 5 Feb 2018 16:39:22 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="de38e6f38be3d75bb436f74efbea6160"; logging-data="15487"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/NXRp5TFTDSuW2j2puLtyylgl0b5vWZWk=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 In-Reply-To: Content-Language: en-US Cancel-Lock: sha1:Sckh8P6b4Uohy1zF5o6MC+7Eawg= Xref: reader02.eternal-september.org comp.lang.ada:50306 Date: 2018-02-05T17:39:22+01:00 List-Id: On 02/05/2018 05:26 PM, Alejandro R. Mosteo wrote: > > Are there special reasons not to allow something like that? I think "in" is not > an operator in the Ada RM sense but now I'm curious why the special treatment. The right side of "[not] in" is a subtype. Ada does not allow operators to have operands that are subtypes. -- Jeff Carter "If a sperm is wasted, God gets quite irate." Monty Python's the Meaning of Life 56