[Top] [All Lists]

Re: Function pointers and #defines

To: "Daniel Jacobowitz" <>
Subject: Re: Function pointers and #defines
From: "Justin Carlson" <>
Date: 30 May 2002 12:58:44 -0700
In-reply-to: <>
References: <> <>
On Thu, 2002-05-30 at 12:50, Daniel Jacobowitz wrote:
> > but the latter is both clearer and shorter.  Is there some deep,
> > mystical C reason that we use the former, or did someone do it that way
> > a long time ago and no one has changed it?
> At a guess, this prevents taking the address of the function
> unintentionally...

But if you're writing code in such a way that the compiler type checking
doesn't flag this, you deserve what you get.  (IMHO, of course.  :)


<Prev in Thread] Current Thread [Next in Thread>