From: usagi@cix.compulink.co.uk ("Jim Wall")
Subject: Re: Type extension with GNAT
Date: Sun, 19 Mar 1995 22:04:39 GMT
Date: 1995-03-19T22:04:39+00:00 [thread overview]
Message-ID: <D5pJzr.MD1@cix.compulink.co.uk> (raw)
In-Reply-To: EACHUS.95Feb21141055@spectre.mitre.org
Erm,
I get the feeling that you've tried something like:
type One is tagged record
A : ?
B : ?
end record;
procedure A ( a : ?;
b : ? );
<new package>
type Two is new One with
C : ?
end record
procedure A ( a : ?;
b : ?;
c : ? );
????
assuming this (and forgive the pseudo-code) then, then what you're after
is simply
procedure A ( AA : One );
and
procedure B ( BB : Two );
Here B
If this is so, I suggest that if your original 'point' procedure were to
accept the actual type Two_D_Point and the version for Three_D_Point
(being the extended Two_D_Point) then the problem wouldn't arise.
next prev parent reply other threads:[~1995-03-19 22:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[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" [this message]
1995-03-13 22:22 Michael M. Bishop
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox