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


In article <dewar.847999613@merv>, dewar@merv.cs.nyu.edu (Robert Dewar) wrote:

>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.

I stand corrected.  Thank you for clarifying this.

M.

--------------------------------------------------------------------
Matthew Heaney
Software Development Consultant
mheaney@ni.net
(818) 985-1271




  reply	other threads:[~1996-11-15  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
1996-11-15  0:00     ` Matthew Heaney [this message]
  -- 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