From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Language lawyer question: Limited Views
Date: Mon, 5 Jan 2009 19:30:43 -0600
Date: 2009-01-05T19:30:43-06:00 [thread overview]
Message-ID: <gjuceu$h67$1@munin.nbi.dk> (raw)
In-Reply-To: ae84f74a-3943-4b8b-916a-ca107c07e5b0@a26g2000prf.googlegroups.com
"Adam Beneschan" <adam@irvine.com> wrote in message
news:ae84f74a-3943-4b8b-916a-ca107c07e5b0@a26g2000prf.googlegroups.com...
> On Dec 31 2008, 9:59 am, Maxim Reznik <rezni...@gmail.com> wrote:
>> 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?
>
> I suppose the answer is that the RM says that the implicit declaration
> of the limited view contains an "incomplete view" of a type, not an
> actual "type declaration", so the syntax rules having to do with
> declarations don't actually apply since these are not really
> declarations. In any case, I wouldn't worry about it; the limited
> view contains an incomplete view of T. I'm someone who worries a lot
> about the tiniest potential ambiguities in the RM, but even this one
> doesn't concern me at all.
Gee, Adam, you must be slipping. *I* was concerned about this very problem
when I ran across it in the context of a question raised during the Portland
ARG meeting. The rules are pretty clearly wrong, IMHO. See AI05-0129-1,
which I created to fix that situation (note, dated November 23rd, 2008).
Randy.
P.S. Maxim may not have noted the AI as I think it was first posted very
recently.
prev parent reply other threads:[~2009-01-06 1:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox