POV-Ray : Newsgroups : povray.off-topic : C++ questions : Re: C++ questions Server Time
7 Sep 2024 11:23:57 EDT (-0400)
  Re: C++ questions  
From: Darren New
Date: 26 Sep 2008 12:31:06
Message: <48dd0e4a$1@news.povray.org>
Invisible wrote:
> Looks like it would only be useful for some pretty obscure situations...

Really? They're useful all the time in C#. Like, every time you have a 
callback function you register with the GUI, or every time in Java where 
you'd have to create an anonymous inner class or something. Pointers to 
members are the OO mechanism corresponding to closures.

You have a window representing an object. You want to be notified 
whenever the mouse moves over the window. How do you tell the window 
manager that?

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


Post a reply to this message

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