comp.lang.ada
 help / color / mirror / Atom feed
From: Maxim Reznik <reznikmm@gmail.com>
Subject: Language lawyer question: Limited Views
Date: Wed, 31 Dec 2008 09:59:00 -0800 (PST)
Date: 2008-12-31T09:59:00-08:00	[thread overview]
Message-ID: <b18f1b31-3795-4acf-8027-1f70c798bc32@c36g2000prc.googlegroups.com> (raw)

Consider
package Pkg is
   type T;
   type T is null record;
end Pkg;

According to 10.1.1(12.3/2)
"The limited view of a package contains: ... For each type_declaration
in the visible part, an incomplete view of the type..."

limited view for it would be:

package limited view Pkg is
   type T;  --  for declaration type T;
   type T;  --  for declaration type T is null record;
end Pkg;

Why two implicit declaration of T are allowed here?
Is second "type T;" completion for first?

PS Happy New Year!
--
Maxim Reznik



             reply	other threads:[~2008-12-31 17:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-31 17:59 Maxim Reznik [this message]
2009-01-05 17:01 ` Language lawyer question: Limited Views Adam Beneschan
2009-01-05 19:32   ` Maxim Reznik
2009-01-05 22:20     ` Adam Beneschan
2009-01-06  1:30   ` Randy Brukardt
replies disabled

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