comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <bauhaus@futureapps.de>
Subject: Re: Inter-object pointer problem
Date: Tue, 16 May 2006 21:58:32 +0200
Date: 2006-05-16T21:58:28+02:00	[thread overview]
Message-ID: <446a2ee4$0$4514$9b4e6d93@newsread2.arcor-online.net> (raw)
In-Reply-To: <1147806613.377038.169250@j33g2000cwa.googlegroups.com>

Alex Catlin wrote:
> Say I have Packages A and B, implementing data structure A and B
> respectively. I want to create a new B everytime I call a certain
> procedure, and insert a pointer to that data structure

Do you mean, a pointer to a package instance?

> The problem is that generic package A is expecting to be instantiated
> with an access type, but the Ptr_B doesnt exist until I have called
> procedure X.

Is there a reason that you are instantiating the package inside
the procedure?

> If this were C I would instantiate A_Structure as a static
> type

In this case your idea and the use of a generic _package_ do
not correspond so well, I'd say. But I might have misunderstood
your description of problem and solution.

Could you clarify a bit, e.g. "structure" is a rather ambigous
term, used in C, ML, and elsewhere, meaning different things.
But it's not clear (to me at least) what it is supposed to mean here.

Do you have a slightly more specified example, one that could
be compiled, if not successful?



       reply	other threads:[~2006-05-16 19:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1147806613.377038.169250@j33g2000cwa.googlegroups.com>
2006-05-16 19:58 ` Georg Bauhaus [this message]
2006-05-16 20:09 ` Inter-object pointer problem Jeffrey R. Carter
     [not found]   ` <1147816421.575165.66310@j33g2000cwa.googlegroups.com>
2006-05-17  2:03     ` Jeffrey R. Carter
2006-05-16 20:27 ` Martin Dowie
replies disabled

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