From: bishopm@source.asset.com (Michael M. Bishop)
Subject: Type extension with GNAT
Date: 13 Mar 1995 17:22:28 -0500
Date: 1995-03-13T17:22:28-05:00 [thread overview]
Message-ID: <3k2gj4$j3i@source.asset.com> (raw)
I want to thank everyone for their thoughtful replies to my original
post on this subject. I've finally figured out what you guys were trying
to tell me! I decided to replace my constructor function with a
procedure (Create), which solved my original problem. I also realized
that when deriving from a tagged type, one does not say
type Three_D_Point_Type is private;
and then define the type extension in the private part, but rather
type Three_D_Point_Type is new Two_D_Point_Type with private;
and then elaborate the type extension in the private part. With that
little bit of business behind me, I was able to successfully code and
test my Two_D_Point_Package, Three_D_Point_Package, and even a
Four_D_Point_Package! This has been a good day.
--
| Mike Bishop | The opinions expressed here reflect |
| bishopm@source.asset.com | those of this station, its management, |
| Member: Team Ada | and the entire world. |
next reply other threads:[~1995-03-13 22:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-03-13 22:22 Michael M. Bishop [this message]
[not found] <3ib6h2$19q4@source.asset.com>
[not found] ` <EACHUS.95Feb21141055@spectre.mitre.org>
1995-02-23 3:14 ` Type extension with GNAT Robert Dewar
1995-02-23 14:59 ` Cyrille Comar
1995-02-23 16:31 ` Robert Dewar
1995-02-28 17:00 ` David Wheeler
1995-02-23 23:32 ` Robert I. Eachus
1995-03-19 22:04 ` "Jim Wall"
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox