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,FREEMAIL_FROM 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-04 11:57:17 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: j_del_strother@hotmail.com (Jon) Newsgroups: comp.lang.ada Subject: Re: Compiler error: 'Expect procedure name in procedure call' Date: 4 Nov 2002 11:57:16 -0800 Organization: http://groups.google.com/ Message-ID: <445cd6bf.0211041157.1537dfd5@posting.google.com> References: <445cd6bf.0211040705.3b638858@posting.google.com> NNTP-Posting-Host: 80.3.160.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1036439837 12998 127.0.0.1 (4 Nov 2002 19:57:17 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 4 Nov 2002 19:57:17 GMT Xref: archiver1.google.com comp.lang.ada:30355 Date: 2002-11-04T19:57:17+00:00 List-Id: Stephen Leake wrote in message news:... > j_del_strother@hotmail.com (Jon) writes: > > > I'm using the GCC compiler, and I'm getting the error 'Expect > > procedure name in procedure call'. > > Anyone tell me what the heck this means? > > Probably exactly what it says; the compiler thinks you are making a > procedure call, so it is expecting a procedure name. Instead, you've > given it something else; a variable, package, or function name (to > name just a few of the possibilities). Or maybe you didn't mean to > make a procedure call, and you've got the wrong syntax. > Ahhh...OK, that makes more sense. IMO, the error is badly worded... I was calling a function without using it to assign to a value. 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.