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 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,708a2cfb544659ff X-Google-Attributes: gid103376,public From: Geert Bosch Subject: Re: File descriptor interfacing Date: 1998/05/05 Message-ID: <6imncb$5rp$1@gonzo.sun3.iaf.nl>#1/1 X-Deja-AN: 350435044 References: <354E9F79.C5E73940@cmis.csiro.au> Organization: La Calandre Infortunee Newsgroups: comp.lang.ada Date: 1998-05-05T00:00:00+00:00 List-Id: Richard Beare 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