comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Access idiom
Date: Mon, 21 Jan 2008 10:05:57 +0100
Date: 2008-01-21T09:56:47+01:00	[thread overview]
Message-ID: <fnlrpoydral0$.l2jnveu8wlki.dlg@40tude.net> (raw)
In-Reply-To: c41f12c9-9d7d-4ddf-8cb2-458c4195a4b0@m34g2000hsb.googlegroups.com

On Sun, 20 Jan 2008 11:57:09 -0800 (PST), Gene wrote:

> To use
> out parameters, the classwide access node type must be named.  The
> problem here is I can't see a way to dispatch on this named access
> type, which will be necessary to recursively operate on child nodes.

As it was already suggested it will dispatch after dereferncing. In Ada
2005 which seems you are using, you will not need P.all with prefix
notation: Node.Next.Next, Next(Node).Next, both Next in both variants
dispatch.

Alternatively you can use tagged handles to nodes wrapping an access type.
The operations on nodes become private. The operations on handles are
public.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  parent reply	other threads:[~2008-01-21  9:05 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-20 19:57 Access idiom Gene
2008-01-21  1:01 ` Ludovic Brenta
2008-01-21  4:16   ` Gene
2008-01-21 15:37     ` Robert A Duff
2008-01-22  4:11     ` Randy Brukardt
2008-01-22  4:11     ` Randy Brukardt
2008-01-21  9:05 ` Dmitry A. Kazakov [this message]
2008-01-21 18:15 ` Jeffrey R. Carter
2008-01-22  3:56   ` Gene
2008-01-22  5:10     ` Gene
2008-01-22  9:01     ` Dmitry A. Kazakov
2008-01-22 18:47     ` Jeffrey R. Carter
2008-01-22  4:15   ` Randy Brukardt
2008-01-22  4:15   ` Randy Brukardt
  -- strict thread matches above, loose matches on Subject: below --
2008-01-21  7:12 Grein, Christoph (Fa. ESG)
replies disabled

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