Re: general func. ptr.

New Message Reply Date view Thread view Subject view Author view

Marcus Barnes (marcus++at++multigen.com)
Thu, 3 Jul 1997 11:28:12 -0700


On Jul 2, 10:16am, Nicolas Gauvin wrote:
> On Jun 29, 3:00pm, Swapnil Shah wrote:
> > I know that pointer to function and pointer to method in class is
different.
> > Now can someone tell me how do i have some general pointer, which can point
> > to different methods of different objectes/classes ???
>
> My understanding is that it is not possible to save a pointer to a true
member
> function partly because of the implicit 'this' parameter.

It is possible to declare a pointer to a class member. The syntax is described
in "The C++ Programming Language, 2nd Edition", chapter 5.4.5. I don't recall
if any of SGI's C++ compilers support this language feature yet.

Regards.

--
+ Marcus Barnes, Technical Staff        mailto:marcus++at++multigen.com +
+ Multigen Inc.                         http://www.multigen.com    +
+ 550 S. Winchester Blvd.               phoneto:1-408-556-2654     +
+ Suite 500 San Jose CA 95128           faxto:1-408-261-4102       +
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:34 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.