comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pogner.demon.co.uk>
Subject: Re: How do I get this to work??
Date: 1999/01/06
Date: 1999-01-06T00:00:00+00:00	[thread overview]
Message-ID: <x7v67ak2k35.fsf@pogner.demon.co.uk> (raw)
In-Reply-To: 76tbvv$ba5$1@nntp3.uunet.ca

"Chris Warwick" <chris.warwick@cdcgy.com> writes:

> 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;

I guess there must be more to this than you are showing us, because as
it stands this Session comes into being here and has no initialization
visible .. so it's not clear what the meaning could be (never mind
whether it will compile)

> >      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);

What about (Session => Session'Access) ? (I expect it will fail just
the same, and anyway as I said earlier you need to fix this
function/procedure thing here))

> >   end Close_Connection;




  parent reply	other threads:[~1999-01-06  0:00 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-04  0:00 How do I get this to work?? Chris Warwick
1999-01-05  0:00 ` Tom Moran
1999-01-05  0:00 ` Chris Warwick
1999-01-05  0:00   ` Stephen Leake
1999-01-05  0:00     ` Tom Moran
1999-01-06  0:00       ` robert_dewar
1999-01-06  0:00         ` Tom Moran
1999-01-07  0:00           ` robert_dewar
1999-01-07  0:00             ` Tom Moran
1999-01-10  0:00               ` robert_dewar
1999-01-06  0:00         ` Larry Kilgallen
1999-01-06  0:00           ` Tom Moran
1999-01-06  0:00         ` Tom Moran
1999-01-07  0:00           ` robert_dewar
1999-01-07  0:00             ` Tom Moran
1999-01-10  0:00               ` robert_dewar
1999-01-10  0:00                 ` Tom Moran
1999-01-10  0:00                   ` robert_dewar
1999-01-10  0:00                   ` robert_dewar
1999-01-10  0:00                     ` Tom Moran
1999-01-10  0:00                     ` Pat Rogers
1999-01-06  0:00     ` Chris Warwick
1999-01-06  0:00       ` Tom Moran
1999-01-07  0:00       ` Stephen Leake
1999-01-08  0:00         ` Simon Wright
1999-01-07  0:00       ` robert_dewar
1999-01-09  0:00         ` Chris Warwick
1999-01-09  0:00           ` Brian Rogoff
1999-01-10  0:00             ` Matthew Heaney
1999-01-09  0:00           ` Simon Wright
1999-01-10  0:00             ` robert_dewar
1999-01-11  0:00               ` Simon Wright
1999-01-16  0:00               ` Chris Warwick
1999-01-16  0:00                 ` Matthew Heaney
1999-01-16  0:00                   ` robert_dewar
1999-01-18  0:00                   ` Chris Warwick
1999-01-18  0:00                     ` Matthew Heaney
1999-01-18  0:00                     ` dennison
1999-01-18  0:00                     ` robert_dewar
1999-01-18  0:00                       ` dennison
1999-01-18  0:00                       ` Tucker Taft
1999-01-19  0:00                         ` Chris Warwick
1999-01-19  0:00                           ` Tom Moran
1999-01-19  0:00                           ` robert_dewar
1999-01-20  0:00                             ` Jeff Carter
1999-01-20  0:00                               ` robert_dewar
1999-01-21  0:00                                 ` Chris Warwick
1999-01-19  0:00                           ` Stephen Leake
1999-01-16  0:00                 ` robert_dewar
1999-01-18  0:00                   ` Chris Warwick
1999-01-18  0:00                     ` Matthew Heaney
1999-01-16  0:00                 ` Simon Wright
1999-01-06  0:00     ` robert_dewar
1999-01-06  0:00   ` Simon Wright [this message]
1999-01-22  0:00   ` Nick Roberts
replies disabled

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