comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@cs.nyu.edu (Robert Dewar)
Subject: Re: Assignment of limited private types...
Date: 1 Feb 1995 07:29:53 -0500
Date: 1995-02-01T07:29:53-05:00	[thread overview]
Message-ID: <3gnus1$8fl@gnat.cs.nyu.edu> (raw)
In-Reply-To: 3gjce1$1he@theopolis.orl.mmc.com

WIth regard to the question of how to pass file types to a task, you can
always use a level of indirection and use a type

   type Access_File_Type is access File_Type;

In Ada 83, this requires that you allocate your File_Type variables on
the heap, which is a bit annoying, but in Ada 95, you could use aliased
File_Type variables, and then get the necessary access values using 'Access:

   My_File : aliased File_Type;

   Open (My_File ....)

   Initialize_Task (My_File'Access);




  parent reply	other threads:[~1995-02-01 12:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-01-26 16:37 Assignment of limited private types Steve McGowan
1995-01-30 18:50 ` Theodore E. Dennison
1995-01-31  1:05   ` Henry Baker
1995-02-01 12:29   ` Robert Dewar [this message]
1995-02-07  2:23   ` Adam Beneschan
  -- strict thread matches above, loose matches on Subject: below --
1995-01-31  2:35 tmoran
replies disabled

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