From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,1449b098788729b8 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!news2.glorb.com!de-l.enfer-du-nord.net!gegeweb.org!aioe.org!nospam From: "John B. Matthews" Newsgroups: comp.lang.ada Subject: Re: prefix of dereference must be a name? Date: Mon, 03 Aug 2009 13:46:23 -0400 Organization: The Wasteland Message-ID: References: NNTP-Posting-Host: LQJtZWzu+iKlBROuDg+IUg.user.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.7.9 Cancel-Lock: sha1:rJ8JOIVpuk30Kmy4RlLMNGHs5Iw= User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Xref: g2news2.google.com comp.lang.ada:7545 Date: 2009-08-03T13:46:23-04:00 List-Id: In article , Adam Beneschan wrote: > On Jul 30, 12:35 pm, "John B. Matthews" wrote: > > > Interesting. The compiler was happy with a function call: > > > > A.all := "+"(C, B).all; > > > > but a use_type_clause didn't seem to help. > > Right, because (C + B).all just doesn't fit into the syntax. USE TYPE > makes certain functions visible that wouldn't otherwise be directly > visible, but it doesn't change the syntax rules. (If "+" weren't > visible at all, then you'd get an error with > > "+"(C,B).all > > but it wouldn't be a syntax error; the error would be that the > compiler didn't know what "+" meant. This could be hypothetically > fixed with something like > > Some_Package."+"(C, B).all > > USE TYPE can also fix that problem by making "+" directly visible, > i.e. visible without needing a package name. But it still can't make > illegal syntax illegal.) Ah, that makes sense. Thanks. The problem wasn't visibility; it was legality. Yannick's reference to the definition of names was dispositive: -- John B. Matthews trashgod at gmail dot com