From: j_del_strother@hotmail.com (Jon)
Subject: Re: Compiler error: 'Expect procedure name in procedure call'
Date: 4 Nov 2002 11:57:16 -0800
Date: 2002-11-04T19:57:17+00:00 [thread overview]
Message-ID: <445cd6bf.0211041157.1537dfd5@posting.google.com> (raw)
In-Reply-To: usmyhtkji.fsf@gsfc.nasa.gov
Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov> wrote in message news:<usmyhtkji.fsf@gsfc.nasa.gov>...
> 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.
next prev parent reply other threads:[~2002-11-04 19:57 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-04 15:05 Compiler error: 'Expect procedure name in procedure call' Jon
2002-11-04 15:35 ` Stephen Leake
2002-11-04 19:57 ` Jon [this message]
2002-11-04 20:35 ` Björn Lundin
2002-11-04 20:53 ` Björn Lundin
2002-11-04 20:48 ` Jim Rogers
2002-11-04 21:08 ` Stephen Leake
2002-11-05 22:15 ` Frank J. Lhota
2002-11-05 20:51 ` Programmer Dude
2002-11-06 15:06 ` Ted Dennison
2002-11-04 21:40 ` Vinzent Hoefler
2002-11-05 9:29 ` Jon
2002-11-05 9:55 ` Dale Stanbrough
2002-11-06 23:29 ` Randy Brukardt
2002-11-05 14:22 ` Ted Dennison
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox