comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: I am not understanding user defined exceptions
Date: Thu, 09 Feb 2017 07:43:23 +0000
Date: 2017-02-09T07:43:23+00:00	[thread overview]
Message-ID: <lyo9ybg678.fsf@pushface.org> (raw)
In-Reply-To: wcc4m04jj3c.fsf@TheWorld.com

Robert A Duff <bobduff@TheWorld.com> writes:

> Georg Bauhaus <nonlegitur@futureapps.invalid> writes:
>
>> Does it work in the static sense when, e.g. a case 
>> statement needs to cover precisely the values of
>> Exclude_One at compile time?
>
> Yes.  In GNAT, Predicate is equivalent to Static_Predicate if that
> would be legal, otherwise it's equivalent to Dynamic_Predicate.  You
> get all the nice full coverage rules in case statements and array
> aggregates and so forth.

Good, but I have to admit the strength of Randy's point re:
maintainability. Would it be possible for GNAT have a diagnostic option
to state whether explicit Static_Predicate would be OK? (you could tell
me to just try Static_Predicate first!)


  reply	other threads:[~2017-02-09  7:43 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-03 20:27 I am not understanding user defined exceptions patrick
2017-02-03 21:08 ` Randy Brukardt
2017-02-03 22:41   ` patrick
2017-02-04  1:26 ` Dennis Lee Bieber
2017-02-04  6:58   ` J-P. Rosen
2017-02-04 17:08     ` Simon Wright
2017-02-08 17:55       ` Georg Bauhaus
2017-02-08 23:37         ` Randy Brukardt
2017-02-09 19:08           ` Robert A Duff
2017-02-09 21:47             ` Randy Brukardt
2017-02-09 22:52               ` Robert A Duff
2017-02-10  9:52                 ` Simon Wright
2017-02-10 10:11                   ` Dmitry A. Kazakov
2017-02-10 20:56                 ` Randy Brukardt
2017-02-10 21:09                 ` Randy Brukardt
2017-02-10 22:07                   ` Dmitry A. Kazakov
2017-02-13 23:20                     ` Randy Brukardt
2017-02-14  8:39                       ` Dmitry A. Kazakov
2017-02-14 20:07                         ` Randy Brukardt
2017-02-15  9:32                           ` Dmitry A. Kazakov
2017-02-10 23:53                   ` Shark8
2017-02-09  0:36         ` Robert A Duff
2017-02-09  7:43           ` Simon Wright [this message]
2017-02-09 19:15             ` Robert A Duff
2017-02-09 20:39               ` Randy Brukardt
2017-02-09 21:06               ` Randy Brukardt
2017-02-09 23:08                 ` Robert A Duff
2017-02-04  8:41 ` Simon Wright
replies disabled

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