comp.lang.ada
 help / color / mirror / Atom feed
* quantified expression with empty array?
@ 2018-03-09 17:15 Stephen Leake
  2018-03-09 18:40 ` Jeffrey R. Carter
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Stephen Leake @ 2018-03-09 17:15 UTC (permalink / raw)


I ran across this question recently:

If I have a quantified expression:

  (for some Child of Children => Predicate (Child))

what is the value if Children'Length = 0?

ARM 2012 4.5.8 8/4, 9/4 talk about evaluating the predicates, but in this case there are no predicates to evaluate.

I wrapped this piece of code in "if Children'Length = 0 then" to be safe.

-- Stephe


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

end of thread, other threads:[~2018-03-09 21:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-09 17:15 quantified expression with empty array? Stephen Leake
2018-03-09 18:40 ` Jeffrey R. Carter
2018-03-09 18:41 ` Niklas Holsti
2018-03-09 21:08 ` Shark8

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