Re: Help needed with function pointer examples

torbenm@diku.dk (Torben Ęgidius Mogensen)
Mon, 16 Jan 2012 17:33:45 +0100

          From comp.compilers

Related articles
Help needed with function pointer examples swatirathi@cse.iitb.ac.in (Swati) (2012-01-06)
Re: Help needed with function pointer examples ulimakesacompiler@googlemail.com (Uli Kusterer) (2012-01-15)
Re: Help needed with function pointer examples gah@ugcs.caltech.edu (glen herrmannsfeldt) (2012-01-15)
Re: Help needed with function pointer examples torbenm@diku.dk (2012-01-16)
Re: Help needed with function pointer examples arnold@skeeve.com (2012-01-16)
Re: Help needed with function pointer examples DrDiettrich1@aol.com (Hans-Peter Diettrich) (2012-01-17)
Re: Help needed with function pointer examples dot@dotat.at (Tony Finch) (2012-01-19)
| List of all articles for this month |
From: torbenm@diku.dk (Torben Ęgidius Mogensen)
Newsgroups: comp.compilers
Date: Mon, 16 Jan 2012 17:33:45 +0100
Organization: SunSITE.dk - Supporting Open source
References: 12-01-006 12-01-026
Keywords: OOP
Posted-Date: 17 Jan 2012 01:31:23 EST

The moderator opined:
> [Any program written in an OO language that allows inheritance or
> overloading uses function pointers, since that's how they're
> implemented. -John]


If the inheritance and overloading can be resolved statically, function
pointers are not needed. But most OO languages use dynamic method
resolution by default, so what you say applies to nearly all OO
implementations.


torben


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.