pointer to member without 'this' - mem_fun like

Derek Parnell derek at psych.ward
Tue Mar 18 05:18:18 PDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 18 Mar 2008 11:27:23 +0200, Vlad wrote:

> Hi list,
> 
> I was wondering if D has something like C's mem_fun, where one can pass 
> a pointer to a member function of a class, that later can be called with 
> various 'this' instances.

Excuse my ignorance, but what is the benefit of this technique?

- -- 
Derek Parnell
Melbourne, Australia
skype: derek.j.parnell
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32) - WinPT 1.2.0

iD8DBQFH37LxB2Z2alRbg5gRAnHiAJ46iamP5hBGavj/I047vTSgVXB19ACg/JFD
PpQJ2faWs584qzSTmu9ftvM=
=HviD
-----END PGP SIGNATURE-----


More information about the Digitalmars-d-learn mailing list