Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!tut.cis.ohio-state.edu!mailrus!uflorida!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: address of function Message-ID: <10377@smoke.BRL.MIL> Date: 7 Jun 89 21:47:03 GMT References: <2700@solo8.cs.vu.nl> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 10 In article <2700@solo8.cs.vu.nl> maart@cs.vu.nl (Maarten Litmaath) writes: >Why weren't function pointers handled the way below? > int foo(), (*bar)() = &foo; >ANSI has fixed this, right? It's not feasible to fix something in widespread correct usage. A function designator gets turned into a pointer to the function in all contexts except as the operand of sizeof or &. The latter makes your example correct, although apparently some existing compilers disallowed use of & in that context.