From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,887bac6875d2db34 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!62.216.30.27.MISMATCH!newsgate.cistron.nl!xs4all!feeder.news-service.com!news.netcologne.de!newsfeed-fusi2.netcologne.de!newsfeed01.chello.at!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Access idiom Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Mon, 21 Jan 2008 10:05:57 +0100 Message-ID: NNTP-Posting-Date: 21 Jan 2008 09:56:47 CET NNTP-Posting-Host: 35db0f6e.newsspool4.arcor-online.net X-Trace: DXC=noko5fII67a]l@YUW5NBkn4IUK\BH3Yb_I;:J?P033hDNcfSJ;bb[eFCTGGVUmh?dLK[5LiR>kgb7l1gY56`1:f X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:19500 Date: 2008-01-21T09:56:47+01:00 List-Id: 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