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,7973f5b14b2860c9 X-Google-Attributes: gid103376,public From: rh@signal.dera.gov.uk (Roger Hoyle) Subject: Re: Compiling with Gnat Date: 1999/01/21 Message-ID: #1/1 X-Deja-AN: 435165070 References: <784r4q$3t7@hobbes.crc.com> Organization: DERA Newsgroups: comp.lang.ada Date: 1999-01-21T00:00:00+00:00 List-Id: David C. Hoos, Sr. writes: > Roger Hoyle wrote ... > > > >use clause not allowed in predefined spec > > What is the name of the file and the name of the unit in which you're > placing this "use" clause? > Does it have the name of one of the langage- or gnat- predefined units? The file is i-cpoerr.ads and the use clause happens in... package Interfaces.C.POSIX_Error is > >The line in the code is : > > > >use Interfaces.C; > > >Are there any workarounds better than putting appropriate references before > >every variable. Would that work? > > In Ada95, "use" clauses can be replaced by "use type" clauses for primitive > operation visibility. Forgive my ignorance, but could you please explain the "use type" clause, I can't find a reference to it an any of my Ada95 texts. Thanks Roger. --------------------------------------------------------------------------- Roger Hoyle rh@signal.dera.gov.uk Parallel and Distributed Simulation Tel: +44 (0)1684 896696 E211, DERA Malvern, WR14 3PS, England Fax: +44 (0)1684 894389