From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.9 required=3.0 tests=BAYES_00,NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R.Carter" Newsgroups: comp.lang.ada Subject: Re: What is the name of the | symbol? Date: Fri, 25 Mar 2022 23:21:37 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 25 Mar 2022 22:21:37 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="b8172fc457638c69ee431e2a428e83aa"; logging-data="27350"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX189Tn5zwsI2+S5k5OoB+cra1WkGwWdt1pc=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Cancel-Lock: sha1:HKZE4Ly2fMpIJqJmUzF1bcHSdI4= In-Reply-To: Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:63649 List-Id: On 2022-03-25 20:04, Matt Jaffe wrote: > In using it in a named association array aggregate, its semantic are "and" --- e.g., some_1D_array := (1 | 3 | 7 => 5, others => 10) sets elements 1 and 3 and 7 to the value 5. In a case statement, its semantics are "or" --- e.g. when 1 | 3 | 7 => ... any of the values 1, 3, or 7 for the case expression will select the ... code for execution. Is there a single name for that symbol (the | ) that seems to have different semantics depending on context? ARM 2.1(15/3) (http://www.ada-auth.org/standards/aarm12_w_tc1/html/AA-2-1.html#I1201) says its name in Ada is "vertical line". -- Jeff Carter "Alms for an ex-leper!" Monty Python's Life of Brian 75