From: Hacid <chadi.alkurdi@gmail.com>
Subject: Re: limited /non-limited tagged type
Date: Fri, 4 Mar 2011 14:40:28 -0800 (PST)
Date: 2011-03-04T14:40:28-08:00 [thread overview]
Message-ID: <7624bb22-805e-4e88-ba6c-debae289f883@z31g2000vbs.googlegroups.com> (raw)
In-Reply-To: 4d716634$0$6975$9b4e6d93@newsspool4.arcor-online.net
On 4 mar, 23:22, Georg Bauhaus <rm-host.bauh...@maps.futureapps.de>
wrote:
> On 3/4/11 10:55 PM, Hacid wrote:
>
> > This solution works but if I extend my package with some addons, I am
> > blocked :
>
> > generic
> > type Element is new Object with private;
> > package Foo_3.Pools is
>
> Type Element is like type Object WRT visibility of the Copy
> operation. The formal is public here, hence there is no
> visible operation Copy, since that operation is private.
>
> If you need the Copy operation in the package only, you
> can make Foo_3.Pools a private child, thus
>
> private generic
> type Element is new Object with private;
> package Foo_3.Pools is
>
> Foo_3.Copy can then effectively be called from within
> Foo_3.Pools.Copy.
I have no compilation error on my file foo_3-pools.adb.
But this construction make only a partial copy of the derivated
element.
And I would want a full one. That was what I tried to explain...but I
am not very understandable in English :o)
next prev parent reply other threads:[~2011-03-04 22:40 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-04 18:56 limited /non-limited tagged type Hacid
2011-03-04 19:54 ` Edward Fish
2011-03-04 21:18 ` Hacid
2011-03-05 0:17 ` Edward Fish
2011-03-04 20:10 ` Georg Bauhaus
2011-03-04 21:55 ` Hacid
2011-03-04 22:21 ` Hacid
2011-03-05 1:20 ` Randy Brukardt
2011-03-04 22:22 ` Georg Bauhaus
2011-03-04 22:40 ` Hacid [this message]
2011-03-05 1:29 ` Georg Bauhaus
2011-03-04 23:34 ` Adam Beneschan
2011-03-05 3:26 ` Adam Beneschan
2011-03-05 16:48 ` Hacid
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox