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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8522260ffbf09d84 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-04 06:02:34 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: taashlo@cyberdude.com (Tad Ashlock) Newsgroups: comp.lang.ada Subject: Re: Problem With Self-Referential Access-to-Subprogram Type Date: 4 Nov 2003 06:02:33 -0800 Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 134.253.26.11 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1067954554 14015 127.0.0.1 (4 Nov 2003 14:02:34 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 4 Nov 2003 14:02:34 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:2038 Date: 2003-11-04T06:02:33-08:00 List-Id: "amado.alves" wrote in message news:... > You know the joke about how every problem can be solved by adding just > another level of indirection? > > type State2; > TYPE STATE2 PTR IS ACCESS STATE2; > type State2 is access procedure (Tester : in out Test Type'Class; > Resultant State : out STATE2 PTR); Thanks for your response, Amado. Dmitry Kazakov pointed out the same solution in a different message. (Although from your post timestamps, it appears that you suggested it first. :) But I question the difference between a function return value and a procedure "out" parameter that makes what I'm trying to do an error for one, but not the other. Thanks again, Tad