comp.lang.ada
 help / color / mirror / Atom feed
From: Geert Bosch <geert@gonzo.sun3.iaf.nl>
Subject: Re: File descriptor interfacing
Date: 1998/05/05
Date: 1998-05-05T00:00:00+00:00	[thread overview]
Message-ID: <6imncb$5rp$1@gonzo.sun3.iaf.nl> (raw)
In-Reply-To: 354E9F79.C5E73940@cmis.csiro.au


Richard Beare <Richard.Beare@cmis.csiro.au> wrote:
   The file control block is a private time, so I guess I should
   be using unchecked conversion. Is this the only way?

If you think the file control block is just a private type to
make your life harder, you can use unchecked conversion. 
But then, you could as well change the relevant run-time source to
make the type non-private.

In the case that you think the type was made private on purpose
to prevent you from depending on GNAT internals that can change
without notice then just use the provided interface in the package
spec. BTW, note that you never should use packages in the system
hierarchy that are not described in the Ada RM or the GNAT RM!

Regards,
   Geert




      parent reply	other threads:[~1998-05-05  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-05-05  0:00 File descriptor interfacing Richard Beare
1998-05-05  0:00 ` Robert Dewar
1998-05-05  0:00 ` Geert Bosch [this message]
replies disabled

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