RE: [Dev-C++] About member functions
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <no...@ya...> - 2001-10-31 23:26:46
|
> -----Original Message----- > From: jansb000 [mailto:jan...@wx...] > Sent: Thursday, November 01, 2001 12:45 AM > To: Ioannis Vranos > Subject: Re: [Dev-C++] About member functions > > > I think what they mean by this is that if you use a pointer > to a member-function, the actuall function that you point to > is resolved at run-time, since, probably due to overloading > or inheritance, the exact target can not be resolved during > compile time. > > The member functions are already available and they appear > only once in memory. However if you use overloeding, then > what appears to be the same function is actually several > times in memory. For example all your classes may contain an > overloaded operator=(); This may result in many different > versions of this function. But each variant of this function > is in the program only once. Well a pointer pointing to a specific overloaded member function will point at the certain function, ignoring the other ones. I hope we are telling the same thing. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com * Alternative URL: http://run.to/noicys |