POV-Ray : Newsgroups : povray.off-topic : C++ questions : Re: C++ questions Server Time
7 Sep 2024 15:23:52 EDT (-0400)
  Re: C++ questions  
From: Darren New
Date: 26 Sep 2008 16:33:52
Message: <48dd4730$1@news.povray.org>
Warp wrote:
> Darren New <dne### [at] sanrrcom> wrote:
>> Warp wrote:
>>>   Isn't this usually handled with callback interfaces (in OO languages)
>>> rather than function pointers?
> 
>> Only in languages that don't support pointers to member functions.
> 
>   C++ supports pointers to member functions, yet using callback interfaces
> is a rather common idiom.

How do you declare a pointer to a member function, then?  I thought you 
had to keep a pointer to the object and then somehow invoke the proper 
member function, but I don't know the syntax for that latter part?

-- 
Darren New / San Diego, CA, USA (PST)


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.