comp.lang.ada
 help / color / mirror / Atom feed
From: rh@signal.dera.gov.uk (Roger Hoyle)
Subject: Re: Compiling with Gnat
Date: 1999/01/21
Date: 1999-01-21T00:00:00+00:00	[thread overview]
Message-ID: <yoxu2xl3q4w.fsf@dymock.dra.hmg.gb> (raw)
In-Reply-To: 784r4q$3t7@hobbes.crc.com

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







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

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-20  0:00 Compiling with Gnat Roger Hoyle
1999-01-20  0:00 ` David C. Hoos, Sr.
1999-01-21  0:00   ` Roger Hoyle [this message]
1999-01-21  0:00     ` robert_dewar
1999-01-21  0:00     ` rdt
1999-01-21  0:00     ` David C. Hoos, Sr.
1999-01-21  0:00 ` dewar
replies disabled

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