comp.lang.ada
 help / color / mirror / Atom feed
From: jerry@jvdsys.nextjk.stuyts.nl (Jerry van Dijk)
Subject: Re: Private declaration question
Date: 1997/06/11
Date: 1997-06-11T00:00:00+00:00	[thread overview]
Message-ID: <865993476.33snx@jvdsys.nextjk.stuyts.nl> (raw)
In-Reply-To: 5nibkg$p9t$1@goanna.cs.rmit.edu.au


In article <5nibkg$p9t$1@goanna.cs.rmit.edu.au> dale@goanna.cs.rmit.EDU.AU writes:

>     3.    type A_Type is limited private;
>     7.    type A_Type is array (Positive range <>) of Integer;
>                |
>        >>> full view of type must be definite subtype"
>
>>think what would happen if someone declared...
>>
>>        type stuff is array (1..10) of A_Type;

Someone would have a problem :-)

>Arrays can only be declared using definite (i.e. fixed size) types.
>
>        type A_Type (<>) is limited private;

Ok, but then it fails on

      type A_type (<>, <>) is limited private;
   ...
   private
      type A_Type is array (Positive range <>, Positive range <>) of Integer;

However both GNAT and ObjectAda accept:

      type A_type (<>) is limited private;
   ...
   private
      type A_Type is array (Positive range <>, Positive range <>) of Integer;

but of course fail when trying to create an A_Type object.

Any idea's ?

--

-- Jerry van Dijk       | Leiden, Holland
-- Business Consultant  | Team Ada
-- Ordina Finance       | jdijk@acm.org




  reply	other threads:[~1997-06-11  0:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-10  0:00 Private declaration question Jerry van Dijk
1997-06-10  0:00 ` Robert A Duff
1997-06-10  0:00 ` Anonymous
1997-06-10  0:00 ` Dale Stanbrough
1997-06-11  0:00   ` Jerry van Dijk [this message]
1997-06-10  0:00     ` John G. Volan
1997-06-10  0:00       ` John G. Volan
1997-06-10  0:00 ` Stephen Leake
replies disabled

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