Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail NNTP-Posting-Date: Fri, 24 Aug 2012 11:29:29 -0500 From: Gareth Owen Newsgroups: comp.lang.c Subject: Re: Function factories References: Date: Fri, 24 Aug 2012 17:29:30 +0100 Message-ID: <87obm0jlsl.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:U8P2k9AX4i36wqncT9t9qvGBW2A= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 7 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-adrtl8fJ8s5EgzLGKAOBUNJWg/+yDwhmidENncMIVtbrJdecTzhvK6pfIpehl/fIv+mU88iv/BVsCMD!JTd4EseAHSfvT4dGOekbuVX6o3jje0wvFjb55qknFivL3IAn4DNODyS4q9Mc2PP6FY7ULw== X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1260 Xref: csiph.com comp.lang.c:24856 David Brown writes: > If you want to stick close to C, then C++11 supports lambda functions > and closures. And all C++ supports functors (i.e. classes with operator()) which will certainly do the job in many use-cases...