comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <onewingedshark@gmail.com>
Subject: Re: I am not understanding user defined exceptions
Date: Fri, 10 Feb 2017 15:53:15 -0800 (PST)
Date: 2017-02-10T15:53:15-08:00	[thread overview]
Message-ID: <d2f912fb-2ac9-4a4a-b174-8f5b5d3a2ad7@googlegroups.com> (raw)
In-Reply-To: <o7la6e$pe$1@franka.jacob-sparre.dk>

On Friday, February 10, 2017 at 2:09:36 PM UTC-7, Randy Brukardt wrote:
> "Robert A Duff"wrote in message 
> news:wccfujnf042.fsf...
> > "Randy Brukardt" writes:
> >
> >> Most likely:
> >>
> >>      X : Integer := ...; -- Static constant
> >>      X : constant Integer := ...; -- Non-static constant
> >>      X : variable Integer := ...; -- Variable.
> >>
> >> Since the default should be the safest thing.
> >
> > Well, at least we agree on one thing.  It's odd that Ada got it right
> > for parameters ('in' is the default), but got it wrong for object
> > declarations (variable is the default).
> >
> > I'd be happy with:
> >
> >     X : Integer := ...; -- constant
> >     X : var Integer := ...; -- variable
> 
> (1) Ada doesn't generally use abbreviations, thus "var" isn't a likely 
> keyword.
> 
> (2) It's important that all properties that clients can depend upon are 
> declarable, so clients aren't depending on accidental properties. (That's 
> the whole principle behind private types.) Static is such a property, so it 
> should be declarable (not necessarily have to be declared in all cases). 
> [Indeed, it should be possible to declare static private types - a whole 
> different kettle of fish.] Similarly, it would be nice if there was a way to 
> prevent people from depending upon the subtype profile of a subprogram (so 
> that it can later be changed if necessary). There's probably other such 
> properties (one would like to include formal parameter names in this sort of 
> restriction, but that would prevent named calls which would be evil.)
> 
>                                   Randy.

Randy, have you any experience with VHDL?
Some of what you're saying seems to have been done in VHDL.

  parent reply	other threads:[~2017-02-10 23:53 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 [this message]
2017-02-09  0:36         ` Robert A Duff
2017-02-09  7:43           ` Simon Wright
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