comp.lang.ada
 help / color / mirror / Atom feed
* Exceptions in (dynamic) predicates
@ 2013-10-31 21:52 Simon Wright
  2013-10-31 23:34 ` Adam Beneschan
  0 siblings, 1 reply; 5+ messages in thread
From: Simon Wright @ 2013-10-31 21:52 UTC (permalink / raw)


A StackOverflow answer contains the following code:

   subtype XYZ is ABC
     with Dynamic_Predicate =>
     ((XYZ.A in Positive) and
        (XYZ.B not in Positive)) or else raise Constraint_Error;

(actually, the original didn't have the 'else', with unhelpful results :)

I can't see where in the ARM "raise Constraint_Error" can be a
(component of a) boolean expression? or is this a GNATism?


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

end of thread, other threads:[~2013-11-21 23:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-31 21:52 Exceptions in (dynamic) predicates Simon Wright
2013-10-31 23:34 ` Adam Beneschan
2013-11-02  6:23   ` Randy Brukardt
2013-11-04 16:20     ` Adam Beneschan
2013-11-21 23:48       ` Randy Brukardt

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