comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: question on variant record
Date: 1996/11/14
Date: 1996-11-14T00:00:00+00:00	[thread overview]
Message-ID: <dewar.847999613@merv> (raw)
In-Reply-To: mheaney-ya023180000311961124440001@news.ni.net


Matthew Heany said

"The technical term is "discriminant," not "tag field."  And technically, a
"variant record" is a discriminant record only with a variant part (case
statement).  You probably meant "discriminant record" in your subject line."

variant record is a perfectly good term, see for example para 35 of the
introduction to the RM:

35   Record, task, and protected types may have special components called
discriminants which parameterize the type.  Variant record structures that
depend on the values of discriminants can be defined within a record type.


variant_part is a perfectly good syntactic term, so the term variant
record is a perfectly reasonable one, it  means a record with a variant
part.

The other term is discriminaTED record, which is a record type with
discriminants. Note that all variant records have discriminants, but
not all records with discriminants have variant parts, so variant record
is a useful term.

P.S. the term discriminant record is not used in the RM.





  reply	other threads:[~1996-11-14  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-11-02  0:00 question on variant record Michiel Perdeck
1996-11-03  0:00 ` Matthew Heaney
1996-11-14  0:00   ` Robert Dewar [this message]
1996-11-15  0:00     ` Matthew Heaney
  -- strict thread matches above, loose matches on Subject: below --
1996-11-02  0:00 Michiel Perdeck
1996-11-03  0:00 ` David C. Hoos, Sr.
replies disabled

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