comp.lang.ada
 help / color / mirror / Atom feed
From: stt@houdini.camb.inmet.com (Tucker Taft)
Subject: Re: discriminants and tagged types
Date: 1998/09/02
Date: 1998-09-02T00:00:00+00:00	[thread overview]
Message-ID: <Eynx4w.CsD.0.-s@inmet.camb.inmet.com> (raw)
In-Reply-To: 01bdd676$82f6cfa0$f330ea9e@ukp03332

Bob Fletcher (bob@radge.globalnet.co.uk) wrote:

: Is there a restriction on using descriminants in tagged types in Ada 95? 

One restriction is that you cannot give defaults for the
discriminants, so their value needs to be specified when an
object is created.  Also, when you extend a tagged type, you
must inherit the discriminants, or completely replace them with
a new set.

: ... I
: know it can't be done in the GNAT compiler, it spits out an error, but my
: girlfriend swears blind that the CASE tool they are using on the project
: she's working on has produced a tagged type with a discriminant. I warned
: her that I'm pretty sure this won't work, but maybe it's a compiler issue,
: although I can't imagine it would be.

: Bob Fletcher
: <A HREF="mailto:bob@radge.globalnet.co.uk"></A>

--
-Tucker Taft   stt@inmet.com   http://www.inmet.com/~stt/
Intermetrics, Inc.  Burlington, MA  USA




       reply	other threads:[~1998-09-02  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <01bdd676$82f6cfa0$f330ea9e@ukp03332>
1998-09-02  0:00 ` Tucker Taft [this message]
1998-09-02  0:00 ` discriminants and tagged types Robert I. Eachus
replies disabled

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