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: alternative elsif branch not tested Date: Fri, 23 Feb 2018 20:53:55 +0100 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <3c869714-ed23-42dd-b0de-4521733da615@googlegroups.com> <32ac70ee-ce84-4433-87a9-800df7cc4cd7@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 23 Feb 2018 19:53:55 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="799a9de8a182de6c50e043f5586a96b9"; logging-data="11992"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/XtAqoXgQpI70Qw/naxZcU0yV7tO/T9JA=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 In-Reply-To: <32ac70ee-ce84-4433-87a9-800df7cc4cd7@googlegroups.com> Content-Language: en-US Cancel-Lock: sha1:FzMxRgQFJhakxI067HOFqxx0AGM= Xref: reader02.eternal-september.org comp.lang.ada:50606 Date: 2018-02-23T20:53:55+01:00 List-Id: On 02/23/2018 08:39 PM, Mehdi Saada wrote: > I don't understand: > Shouldn't that line > elsif Argument (1)'Length /= 1 or Argument(1)(ARGUMENT(1)'First) not in 'n'|'c'|'N'|'C' then ... > cover the case where Argument(1)'Length = 0 (I suppose it's the problem) ? "or" is a binary operator. Like all binary operators, both of its operands are evaluated. See ARM 4.5.1 http://www.ada-auth.org/standards/rm12_w_tc1/html/RM-4-5-1.html -- Jeff Carter "Strange women lying in ponds distributing swords is no basis for a system of government." Monty Python & the Holy Grail 66