in reply to Re: Be grateful for Perl OO
in thread Be grateful for Perl OO
Update: The basic idea is using a templated function like this:
Update 1/19/03: Transposed the return type to the proper place in the declaration. Thanks to John M. Dlugosz.template <class Type> double doCall(Type *instance, double (Type::*pmf)()) { return (instance->*pmf)(); }
|
---|