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-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!t11g2000prh.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: prefix of dereference must be a name? Date: Mon, 3 Aug 2009 07:44:47 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1249310688 23809 127.0.0.1 (3 Aug 2009 14:44:48 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 3 Aug 2009 14:44:48 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: t11g2000prh.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:7541 Date: 2009-08-03T07:44:47-07:00 List-Id: On Jul 30, 12:35=A0pm, "John B. Matthews" wrote: > Interesting. The compiler was happy with a function call: > > A.all :=3D "+"(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.) -- Adam