comp.lang.ada
 help / color / mirror / Atom feed
* Language lawyer question: Limited Views
@ 2008-12-31 17:59 Maxim Reznik
  2009-01-05 17:01 ` Adam Beneschan
  0 siblings, 1 reply; 5+ messages in thread
From: Maxim Reznik @ 2008-12-31 17:59 UTC (permalink / 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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-01-06  1:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-31 17:59 Language lawyer question: Limited Views Maxim Reznik
2009-01-05 17:01 ` Adam Beneschan
2009-01-05 19:32   ` Maxim Reznik
2009-01-05 22:20     ` Adam Beneschan
2009-01-06  1:30   ` Randy Brukardt

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