comp.lang.ada
 help / color / mirror / Atom feed
* What is the name of the | symbol?
@ 2022-03-25 19:04 Matt Jaffe
  2022-03-25 19:23 ` Ben Bacarisse
  2022-03-25 22:21 ` Jeffrey R.Carter
  0 siblings, 2 replies; 12+ messages in thread
From: Matt Jaffe @ 2022-03-25 19:04 UTC (permalink / raw)


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?

^ permalink raw reply	[flat|nested] 12+ messages in thread
* What is the name of the | symbol?
@ 2022-03-25 19:16 Matt Jaffe
  2022-03-25 20:03 ` Niklas Holsti
  0 siblings, 1 reply; 12+ messages in thread
From: Matt Jaffe @ 2022-03-25 19:16 UTC (permalink / raw)


In using it in a named association array aggregate, its semantics 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 1or 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?

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-03-27 19:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-25 19:04 What is the name of the | symbol? Matt Jaffe
2022-03-25 19:23 ` Ben Bacarisse
2022-03-25 22:21 ` Jeffrey R.Carter
2022-03-25 23:24   ` Chris Townley
2022-03-26  0:58     ` Luke A. Guest
2022-03-26  2:01       ` Chris Townley
2022-03-27  0:38       ` Stephen Leake
2022-03-27 19:01         ` Matt Jaffe
2022-03-27 18:57     ` Matt Jaffe
  -- strict thread matches above, loose matches on Subject: below --
2022-03-25 19:16 Matt Jaffe
2022-03-25 20:03 ` Niklas Holsti
2022-03-26  4:24   ` Paul Rubin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox