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-7-bit X-Google-Thread: 103376,68e7fcc642995ece X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-06 15:06:10 PST Path: archiver1.google.com!news2.google.com!postnews1.google.com!not-for-mail From: adam@irvine.com (Adam Beneschan) Newsgroups: comp.lang.ada Subject: Re: Calling through function pointer--syntax question Date: 6 Jun 2001 15:06:09 -0700 Organization: http://groups.google.com/ Message-ID: References: <9fj5nm$sg0$1@news.netmar.com> <3B1E539E.CF306AC6@averstar.com> NNTP-Posting-Host: 63.206.153.98 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 991865170 26854 127.0.0.1 (6 Jun 2001 22:06:10 GMT) X-Complaints-To: groups-support@google.com NNTP-Posting-Date: 6 Jun 2001 22:06:10 GMT Xref: archiver1.google.com comp.lang.ada:8271 Date: 2001-06-06T22:06:10+00:00 List-Id: Tucker Taft wrote in message news:<3B1E539E.CF306AC6@averstar.com>... > adam@irvine.com wrote: > > > > Is the last procedure call in the program ambiguous? > > No. Even if func_ptr had a default expression for > its "param" it would still be unambiguous, because > you need an explicit ".all" to call through a function > pointer when there are no explicit parameters passed. > An implicit ".all" is provided prior to "(" and "." > but not in other places. Sorry, I'm not following . . . the default parameter in my example is on the function "func", not on the function *pointer*. In the call P (func (5)); since an implicit .all is provided prior to "(", why couldn't this be interpreted as P (func.all (5)); [here it's clear that the default parameter is passed to "func"]? -- Adam