From: bobduff@world.std.com (Robert A Duff)
Subject: Re: ada.sequential_io problem
Date: Tue, 14 Mar 1995 14:01:27 GMT
Date: 1995-03-14T14:01:27+00:00 [thread overview]
Message-ID: <D5FoAF.AxI@world.std.com> (raw)
In-Reply-To: 3k3e12$2op@toads.pgh.pa.us
In article <3k3e12$2op@toads.pgh.pa.us>,
Tore Joergensen <tore@lis.pitt.edu> wrote:
>What is wrong???
Sounds like a compiler bug.
First of all, Sequential_IO allows both definite and indefinite subtypes
-- that's what the (<>) means.
Furthermore, all elementary subtypes, including modular ones, are
definite. It's only composite subtypes that can be indefinite.
>I tried to define:
> package bio is new ada.sequential_io(unsigned_8);
>
>Unsigned_8 is defined in the package interfaces as:
> type unsigned_8 is mod 2 ** 8;
> for unsigned_8'size use 8;
>
>When I try to compile (gnat 2.03 for OS/2), I get:
> f:\EMX\GNATLIB\a-sequio.adb:33:59: actual for "Element_Type"
> must be a definite subtype
- Bob
next prev parent reply other threads:[~1995-03-14 14:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-03-14 6:44 ada.sequential_io problem Tore Joergensen
1995-03-14 14:01 ` Robert A Duff [this message]
1995-03-15 11:00 ` Pascal OBRY
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox