From: Laurent.Guerby@enst-bretagne.fr (Laurent Guerby)
Subject: Re: Question about tagged types and functions
Date: 1996/05/22
Date: 1996-05-22T00:00:00+00:00 [thread overview]
Message-ID: <4xpw7xpoc6.fsf@leibniz.enst-bretagne.fr> (raw)
In-Reply-To: 4ntg05$qgc@ns.interserf.net
David> Why does Ada-95 (GNAT 3.01a) tell me that I also *must* have:
David> function Create return DerivedType;
David> There is something going on with tagged types and functions
David> that I don't understand because if I use
David> procedure Create(a : out BaseType);
David> it (Ada-95) does not object.
The status of functions (primitives) that dispatch on result is
special in Ada 95. See RM95-3.9.3(4-6). Or better, read the paper "Ada
9X Tagged Types and their Implementation in GNAT" by Cyrille Comar and
Brett Porter (may be available from http://www.gnat.com, if not in the
TriAda94 Conference proceedings). There's a section devoted to this
error message (4.4) (among other OO error messages ;-).
--
-- Laurent Guerby, student at Telecom Bretagne (France), Team Ada.
-- "Use the Source, Luke. The Source will be with you, always (GPL)."
-- http://www-eleves.enst-bretagne.fr/~guerby/ (GATO Project).
-- Try GNAT, the GNU Ada 95 compiler (ftp://cs.nyu.edu/pub/gnat).
next prev parent reply other threads:[~1996-05-22 0:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-05-21 0:00 Question about tagged types and functions David Hunter
1996-05-22 0:00 ` Laurent Guerby [this message]
1996-05-22 0:00 ` David Hunter
1996-05-22 0:00 ` Jon S Anthony
1996-05-23 0:00 ` Jon S Anthony
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox