Darren New <dne### [at] san rr com> wrote:
> 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?
Isn't this usually handled with callback interfaces (in OO languages)
rather than function pointers?
--
- Warp
Post a reply to this message
|