comp.lang.ada
 help / color / mirror / Atom feed
From: Craig Carey <research@ijs.co.nz>
Subject: Re: Constant record components
Date: Fri, 14 Jul 2006 20:15:53 +1200
Date: 2006-07-14T20:15:53+12:00	[thread overview]
Message-ID: <dlheb29gkitf7n4j9e831dvcq84nstmm61@4ax.com> (raw)
In-Reply-To: K4OdnXFtjqm9UTPZnZ2dnUVZ_q-dnZ2d@megapath.net

On Fri, 7 Jul 2006 16:04:13 -0500, "Randy Brukardt"
 <randy@rrsoftware.com> wrote:

>The problem with that is that the Initialize routine is just an ordinary
>subprogram. That means that either constant components can't be initialized
>with them (only directly when the object is created), or you have to have
>some rule like "they're read-write in the body", which is what is
>disgusting. And remember that Initialize isn't the only routine of this
>type; user-defined Read and Input routines also need this property.
>
>There are also issues on complete record assignment of objects with constant
>components: what happens if one of the constant components changes? If it
>doesn't change (raises Constraint_Error), then you have a discriminant
>(effectively); if it does change, then how constant is it??
>
>There may in fact be a solution to these issues, but it has never seemed
>important enough to spend the intensive effort needed to find one.
>
>                                    Randy.
>

Why is the argument (if any) all behind the single word. Surely you can
undo years of reputation building with that single trick alone.
It seems worse that the word "disgusting" seems to disclose the
existence of a purpose that is a proper topic for inquiry by concealing
the words read-only after this Usenet thread had a sustained failure at
realizing that the word "constant" in the title means read-only rather
than 'constant'.

Brukardt is a notable incompetent at language design; with his black
snout pressed in the back of the polar bear jesery of the great Ada
maritime captains stranded on ice when their ship got frozen in. It all
has to do with money$$; the lax pleasure of besting out the whole
"previous brain-thought" behind a 1-word argument. Voltage levels for
the rest -- collectors of views for re-sale?

I note there can be a lot more parameter passing modes than
Ada's "in" and "out" and "in out".

Eg. record fields currently have the PASCAL style 'in' mode, ie. the
initial value can be modifed.

There is always the ARG contempt for questions technique.


Craig Carey



  reply	other threads:[~2006-07-14  8:15 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <12ad8guf3sg1o0d@corp.supernews.com>
2006-07-01 17:06 ` Constant record components Dmitry A. Kazakov
2006-07-01 17:37   ` ME
2006-07-01 18:33     ` Georg Bauhaus
2006-07-01 21:44       ` Jeffrey R. Carter
2006-07-02  9:18         ` Georg Bauhaus
2006-07-02 16:13   ` ME
2006-07-03  7:50     ` Dmitry A. Kazakov
2006-07-03 11:46       ` Craig Carey
2006-07-04  0:06         ` M E Leypold
2006-07-03 16:31       ` ME
2006-07-03 23:53         ` Randy Brukardt
2006-07-04  1:59           ` Craig Carey
2006-07-04  7:25           ` ME
2006-07-05 21:55             ` Randy Brukardt
2006-07-06  0:59               ` tmoran
2006-07-06  7:47               ` Jean-Pierre Rosen
2006-07-06 22:29                 ` Randy Brukardt
2006-07-07  4:34                   ` Jeffrey R. Carter
2006-07-07  5:39                   ` ME
2006-07-07  9:15                     ` Georg Bauhaus
2006-07-08 16:13                       ` ME
2006-07-08 17:14                         ` Georg Bauhaus
2006-07-13  6:58                           ` ME
2006-07-13  8:39                             ` Georg Bauhaus
2006-07-07 21:04                     ` Randy Brukardt
2006-07-14  8:15                       ` Craig Carey [this message]
2006-07-14 12:51                         ` Craig Carey
2006-07-15  3:45                           ` ME
2006-07-04  0:08         ` M E Leypold
2006-07-02  5:52 ` Craig Carey
replies disabled

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