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: Chris Townley Newsgroups: comp.lang.ada Subject: Re: What is the name of the | symbol? Date: Fri, 25 Mar 2022 23:24:45 +0000 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 25 Mar 2022 23:24:47 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="960b8cebd954adbc45a3a4fd952883d2"; logging-data="4391"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/dSpfENiXRbYArmr7wDdhOCE/dSj8jQKY=" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Cancel-Lock: sha1:tBPG5r+v2chQqE+OY2zV5pdvXxY= In-Reply-To: Content-Language: en-GB Xref: reader02.eternal-september.org comp.lang.ada:63650 List-Id: On 25/03/2022 22:21, Jeffrey R.Carter wrote: > 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". > Probably wrong, but for a Unix user since the last century, I call it 'pipe' -- Chris