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.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,86ec22e070e319c0 X-Google-Attributes: gid103376,public From: "Chris Warwick" Subject: Re: How do I get this to work?? Date: 1999/01/05 Message-ID: <76tbvv$ba5$1@nntp3.uunet.ca>#1/1 X-Deja-AN: 429040771 References: <76s0dp$1v4$1@nntp3.uunet.ca> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: UUNET Canada News Transport Newsgroups: comp.lang.ada Date: 1999-01-05T00:00:00+00:00 List-Id: Sorry, perhaps I should have been a little more specific... Chris Warwick wrote in message <76s0dp$1v4$1@nntp3.uunet.ca>... > package Ada_Front_End is > > type Session_Type is > record > Status : integer := 0; > end record; > > type Session_Ptr_Type is access Session_Type; > > function Close_Port (Session : in Session_Ptr_Type) return integer; > end Ada_Front_End; > > procedure Close_Connection is > Session : aliased constant Ada_Front_End.Session_Type; > Session_Ptr : Session_Ptr_Type := Session'Access; It barfs here, because Session_Ptr_Type has greater scope than Session. My problem is Close_Port needs a pointer to a Session, so I have to define the Session_Ptr_Type at the highest level... > begin > Ada_Front_End.Close_Port > (Session => Session_Ptr); > end Close_Connection; > >