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,5c8024b730bb1bfb X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-05 06:22:26 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dennison@telepath.com (Ted Dennison) Newsgroups: comp.lang.ada Subject: Re: Compiler error: 'Expect procedure name in procedure call' Date: 5 Nov 2002 06:22:26 -0800 Organization: http://groups.google.com/ Message-ID: <4519e058.0211050622.64f85cf@posting.google.com> References: <445cd6bf.0211040705.3b638858@posting.google.com> <445cd6bf.0211041157.1537dfd5@posting.google.com> NNTP-Posting-Host: 65.115.221.98 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1036506146 26939 127.0.0.1 (5 Nov 2002 14:22:26 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 5 Nov 2002 14:22:26 GMT Xref: archiver1.google.com comp.lang.ada:30382 Date: 2002-11-05T14:22:26+00:00 List-Id: j_del_strother@hotmail.com (Jon) wrote in message news:<445cd6bf.0211041157.1537dfd5@posting.google.com>... > Which leads on to my next question... > Can you call a function & ignore its return value? I'm using a lot of No. Well...to be precise you can't ignore the return value until after you have done something with it. > 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. What I always do for OS calls is wrap them in an Ada routine that raises an execption for bad statuses. While I'm at it, I convert between Ada strings and C strings, turn C 0/null defaults into Ada procedure overloads, etc.