From: "Samuel T. Harris" <sam_harris@hso.link.com>
Subject: Re: private type discriminants ignored?
Date: 1998/05/01
Date: 1998-05-01T00:00:00+00:00 [thread overview]
Message-ID: <3549DEA1.342A8D56@hso.link.com> (raw)
In-Reply-To: Es7569.4n2@world.std.com
Robert A Duff wrote:
>
> In article <35468F93.C371940@hso.link.com>,
> Samuel T. Harris <sam_harris@hso.link.com> wrote:
> >To one-up the pedantic theme :) Bob's "... unconstrained variable"
> >appears several lines after "a default means that the discriminant
> >can change". Perhaps I should have said "Not entirely complete."
>
> :-)
>
> Actually, what I *should* have said was, "The mere presence of a
> defaulted discrim (in the type decl) means that it is possible to create
> unconstrained variables of the type; the discriminants of such variables
> can change (but only by whole-record assignment)."
<-snip lots of good stuff ->
> >The subtle differences are lost on many of our (my company's)
> >Ada initiates and I have spent some time explaining the nuances
> >of this construction, especially as applied to polymorphic variant
> >records.
>
> I would blame that on non-intuitive language rules. Not on the poor
> programmers, who reasonably, but incorrectly, think that default
> expressions are for giving default values to discriminants.
Just so. These initiates are simply new to Ada, not poor programmers.
>
> - Bob
>
--
Samuel T. Harris, Principal Engineer
Raytheon Training Incorporated
"If you can make it, We can fake it!"
next prev parent reply other threads:[~1998-05-01 0:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Es7569.4n2@world.std.com>
1998-04-24 0:00 ` private type discriminants ignored? Jay Sachs
1998-04-24 0:00 ` Joel VanLaven
[not found] ` <Es3A4J.Ion@world.std.com>
1998-04-28 0:00 ` Samuel T. Harris
1998-04-28 0:00 ` Patrick D. Rogers
1998-04-28 0:00 ` Samuel T. Harris
1998-04-30 0:00 ` Anonymous
[not found] ` <6ib6t4$63f$1@goanna.cs.rmit.edu.au>
1998-05-06 0:00 ` Robert I. Eachus
1998-05-01 0:00 ` Samuel T. Harris [this message]
[not found] <matthew_heaney-ya023680003004981720560001@news.ni.net>
1998-05-01 0:00 ` Anonymous
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox