comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: "access constant" discriminant
Date: Fri, 21 Feb 2003 14:21:04 -0600
Date: 2003-02-21T14:21:04-06:00	[thread overview]
Message-ID: <v5d2m6pi5q3tef@corp.supernews.com> (raw)
In-Reply-To: slrnb5c0ih.nq.lutz@taranis.iks-jena.de

Lutz Donnerhacke wrote in message ...
>* Matthew Heaney wrote:
>> Access discriminants are very powerful.  No serious Ada95 program can
>> be written without them.
>
>If there is a serious program without access discriminants, let's call
it a
>Spark program, or trivial, ok?

Claw doesn't use access discriminants. That's in large part because they
cause limited 'poisoning', as they're restricted to limited types. We
prefered to use Adjust to make assignment work properly.

Indeed, I'm not aware of any real Ada program, serious or otherwise,
that actually uses access discriminants. I know that they were buggy in
Janus/Ada until very recently, and we never received any bug reports on
them. So, as a practical matter, these are a very marginal feature of
Ada with very limited uses.

In any case, Matt's statement would probably have been better if it
said:

Access discriminants are very powerful.  They are very much
underutilized, probably because hardly anybody understands them.

Sweeping statements about programming style are not likely to be
helpful. I tend to feel about finalization like Matt apparently does
about access discriminants, but the only time I would say something like
"No serious Ada program can be written without them." is when I'm
looking for fight. Even though I believe that is true, I'm well aware
that there are many, many Ada projects which have an irrational fear of
finalization, and to characterize them as not being "serious" is not
likely to make any friends.

         Randy.







  reply	other threads:[~2003-02-21 20:21 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-10  8:26 "access constant" discriminant tmoran
2003-02-10 14:43 ` Frank J. Lhota
2003-02-10 18:57   ` tmoran
2003-02-15 19:17     ` Richard Riehle
2003-02-15 19:59       ` Larry Kilgallen
2003-02-15 23:53         ` Richard Riehle
2003-02-16  1:50           ` Eric G. Miller
2003-02-20  2:23         ` Matthew Heaney
2003-02-20 17:34         ` Stephen Leake
2003-02-21  0:42           ` Matthew Heaney
2003-02-21 10:41             ` Lutz Donnerhacke
2003-02-21 20:21               ` Randy Brukardt [this message]
2003-02-23 12:22                 ` Simon Wright
2003-02-24  7:06                 ` Dale Stanbrough
2003-02-24 18:58                 ` Matthew Heaney
2003-02-24 21:05                   ` Randy Brukardt
2003-02-25 14:15                     ` Frank J. Lhota
2003-02-26  1:05                       ` Randy Brukardt
2003-02-24 16:03               ` Matthew Heaney
2003-02-21 15:03             ` Hyman Rosen
2003-02-21 20:09               ` Randy Brukardt
2003-02-21 21:33               ` Matthew Heaney
2003-02-21 20:07             ` Randy Brukardt
2003-02-24 19:11               ` Matthew Heaney
2003-02-24 21:17                 ` Randy Brukardt
2003-02-25 17:49                   ` Richard Riehle
2003-02-20  2:23       ` Matthew Heaney
2003-02-20  2:20     ` Matthew Heaney
2003-02-10 19:26 ` Robert A Duff
2003-02-10 22:27 ` Rod Chapman
2003-02-11  2:00   ` Jeffrey Carter
2003-02-20  2:28   ` Matthew Heaney
2003-02-20  9:45     ` Lutz Donnerhacke
2003-02-20  2:17 ` Matthew Heaney
replies disabled

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