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=-0.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, FREEMAIL_REPLY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5c8024b730bb1bfb X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-04 13:41:00 PST From: Vinzent Hoefler Newsgroups: comp.lang.ada Subject: Re: Compiler error: 'Expect procedure name in procedure call' Date: Mon, 04 Nov 2002 22:40:41 +0100 Organization: JeLlyFish software References: <445cd6bf.0211040705.3b638858@posting.google.com> <445cd6bf.0211041157.1537dfd5@posting.google.com> X-Newsreader: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 213.3.192.229 Message-ID: <3dc6e966_1@news.bluewin.ch> X-Trace: news.bluewin.ch 1036446054 213.3.192.229 (4 Nov 2002 22:40:54 +0100) X-Complaints-To: abuse@bluewin.ch Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-han1.dfn.de!news-nue1.dfn.de!uni-erlangen.de!news.imp.ch!news.imp.ch!news-zh.switch.ch!newsfeed-zh.ip-plus.net!news.ip-plus.net!news.bluewin.ch!not-for-mail Xref: archiver1.google.com comp.lang.ada:30366 Date: 2002-11-04T22:40:41+01:00 List-Id: j_del_strother@hotmail.com (Jon) wrote: >Which leads on to my next question... >Can you call a function & ignore its return value? I'm using a lot of >Win32 calls, all of which are written as functions rather than >procedures, and I'm getting a huge mess of useless temporary variables >just to allow me to call the functions. Are you *sure*, you won't have to check the function result? Perhaps you could use a declare block around the "function" call with a local variable to store the result. The optimizer should be easily able to remove this reference. Vinzent.