This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How is 'this' passed to member function calls?
- To: edA-qa@disemia.com, gcc@gcc.gnu.org
- Subject: Re: How is 'this' passed to member function calls?
- From: Mike Stump <mrs@wrs.com>
- Date: Mon, 23 Aug 1999 12:31:44 -0700 (PDT)
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.