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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,3e3b1c50b9a29c0b,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!o13g2000cwo.googlegroups.com!not-for-mail From: "Andrew" Newsgroups: comp.lang.ada Subject: Forwarding declaration? Date: 1 Apr 2005 00:36:22 -0800 Organization: http://groups.google.com Message-ID: <1112344582.787855.248880@o13g2000cwo.googlegroups.com> NNTP-Posting-Host: 4.228.123.19 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1112344608 17233 127.0.0.1 (1 Apr 2005 08:36:48 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 1 Apr 2005 08:36:48 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: o13g2000cwo.googlegroups.com; posting-host=4.228.123.19; posting-account=Kq9unQ0AAADh_grEViI3JGqegXKDDjxt Xref: g2news1.google.com comp.lang.ada:10208 Date: 2005-04-01T00:36:22-08:00 List-Id: I have need of a forwarding declaration. How do I do that in Ada? --- example1 --- type Boob is record Avar : A_Ptr; end record; type Boob_Ptr is access all Boob; task type A(booby: Boob_Ptr) is . . . end A; type A_Ptr is access all A; ------------------ compiler says (and I say) that A_Ptr is undefined for Boob. Now if I could use a temporary placeholder for A_Ptr (a forwarding declaration) then the compiler and I would be happy. --- example2 --- -- forwarding declaration temporary declaration of A_Ptr; type Boob is record Avar : A_Ptr; end record; type Boob_Ptr is access all Boob; task type A(booby: Boob_Ptr) is . . . end A; type A_Ptr is access all A; ------------------ Thanks, Andrew