comp.lang.ada
 help / color / mirror / Atom feed
* Type extension with GNAT
@ 1995-03-13 22:22 Michael M. Bishop
  0 siblings, 0 replies; 7+ messages in thread
From: Michael M. Bishop @ 1995-03-13 22:22 UTC (permalink / 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.                  |



^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <3ib6h2$19q4@source.asset.com>]

end of thread, other threads:[~1995-03-19 22:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-03-13 22:22 Type extension with GNAT Michael M. Bishop
     [not found] <3ib6h2$19q4@source.asset.com>
     [not found] ` <EACHUS.95Feb21141055@spectre.mitre.org>
1995-02-23  3:14   ` 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"

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