comp.lang.ada
 help / color / mirror / Atom feed
From: taashlo@cyberdude.com (Tad Ashlock)
Subject: Re: Problem With Self-Referential Access-to-Subprogram Type
Date: 4 Nov 2003 06:02:33 -0800
Date: 2003-11-04T06:02:33-08:00	[thread overview]
Message-ID: <c8f570aa.0311040602.39f92026@posting.google.com> (raw)
In-Reply-To: mailman.266.1067880764.25614.comp.lang.ada@ada-france.org

"amado.alves" <amado.alves@netcabo.pt> wrote in message news:<mailman.266.1067880764.25614.comp.lang.ada@ada-france.org>...
> 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



  reply	other threads:[~2003-11-04 14:02 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-03 17:32 Problem With Self-Referential Access-to-Subprogram Type amado.alves
2003-11-04 14:02 ` Tad Ashlock [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-11-03 16:58 Tad Ashlock
2003-11-04 10:04 ` Dmitry A. Kazakov
2003-11-04 13:52   ` Tad Ashlock
2003-11-04 14:24     ` Dmitry A. Kazakov
2003-11-04 14:52       ` Marius Amado Alves
2003-11-05  8:31         ` Dmitry A. Kazakov
2003-11-05 11:27           ` Marius Amado Alves
2003-11-05 13:33             ` Dmitry A. Kazakov
2003-11-05 14:02               ` Marius Amado Alves
2003-11-05 17:49             ` Adam Beneschan
2003-11-05 18:55               ` Marius Amado Alves
2003-11-05 22:54                 ` Tad Ashlock
2003-11-06 17:45                   ` Warren W. Gay VE3WWG
replies disabled

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