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 09:00:32 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!cambridge1-snf1.gtei.net!news.gtei.net!inmet!not-for-mail From: Tucker Taft Newsgroups: comp.lang.ada Subject: Re: Calling through function pointer--syntax question Date: Wed, 06 Jun 2001 12:00:30 -0400 Organization: AverStar (formerly Intermetrics) Burlington, MA USA Message-ID: <3B1E539E.CF306AC6@averstar.com> References: <9fj5nm$sg0$1@news.netmar.com> NNTP-Posting-Host: nebula.burl.averstar.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: inmet2.burl.averstar.com 991843231 28717 141.199.8.77 (6 Jun 2001 16:00:31 GMT) X-Complaints-To: usenet@inmet2.burl.averstar.com NNTP-Posting-Date: 6 Jun 2001 16:00:31 GMT X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:8234 Date: 2001-06-06T16:00:31+00:00 List-Id: 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. > > If this is a legal program, what should it do? This calls the "P" that takes a func_ptr. > > -- thanks, Adam > > ... -- -Tucker Taft stt@avercom.net http://www.avercom.net Chief Technology Officer, AverCom Corporation (A Titan Company) Burlington, MA USA (AverCom was formerly the Commercial Division of AverStar: http://www.averstar.com/~stt)