Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!spool.mu.edu!mips!news.cs.indiana.edu!noose.ecn.purdue.edu!dirac!gibbs.physics.purdue.edu!sho From: sho@gibbs.physics.purdue.edu (Sho Kuwamoto) Newsgroups: comp.sys.mac.programmer Subject: Re: Problem with Think C and Polygons! Message-ID: <5280@dirac.physics.purdue.edu> Date: 15 Jun 91 09:46:59 GMT References: <0E010021.a2n8ad@gla-aux.uucp> Sender: news@dirac.physics.purdue.edu Organization: Purdue Univ. Physics Dept, W.Lafayette, IN Lines: 21 In article glenn%gla-aux.uucp@skinner.cs.uoregon.edu writes: >In article , farmer@ecs.umass.edu (THE MAD MUSKRAT) writes: >> I get a compiler error: Invalid use of inline function. [...] >> ClosePoly; > ^^^^^^^^^ >Why couldn't they have simply said that the function parens are missing? The statement, as typed, asks the compiler to take the address of the function and do nothing with it. THINK C should issue a warning (something to the effect of, "That line does absolutely nothing. Are you sure you don't want parentheses?"), but THINK C never issues warnings. In this case, the function has no address, so the compiler chokes. The error message might be better if it read, "You can't take the address of an inline function," but it would probably still be confusing unless you knew what an inline function was. -Sho -- sho@physics.purdue.edu