This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: How is 'this' passed to member function calls?


This is like saying, I have this loaded shotgun here, and if I angle
it this way into my mouth, will it work?

Well, yes, basically, if you do it right.  I, of course, recommend not
doing that, even if it might work.  It is painful for a C++ programmer
to watch you do that.  We should not help you...

Couldn't use use a templated static member function to do what you
want or something?

> From: "edA-qa mort-ora-y" <iend@spots.ab.ca>
> Date: Sun, 22 Aug 1999 09:38:36 -0600

> I have a situation where I want to directly call member functions,
> via a pointer to the member function and having an object pointer.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]