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


Jerry van Dijk writes:

"Why has the completion of a private declaration to be a full view ?

     1. package Oops is
     2.
     3.    type A_Type is limited private;
     4.
     5. private
     6.
     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;

Arrays can only be declared using definite (i.e. fixed size) types.

Try

	type A_Type (<>) is limited private;


Dale




  parent reply	other threads:[~1997-06-10  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 ` Stephen Leake
1997-06-10  0:00 ` Dale Stanbrough [this message]
1997-06-11  0:00   ` Jerry van Dijk
1997-06-10  0:00     ` John G. Volan
1997-06-10  0:00       ` John G. Volan
1997-06-10  0:00 ` Anonymous
replies disabled

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