On Jul 28, 2:53 am, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> Jeffrey, this is exactly what I was thinking... So now does it work or not?

"Jein."

If you want to call a method of an OBJECT, it won't work because you
need a reference to THAT object (which you can encapsulate in a
closure/anonymous function). If you want to call a method of a CLASS
then yes it will work because 'this' is then no longer tied to a
specific OBJECT. In some ways, passing SomeClass.SomeFunc as a
function reference is equivalent to passing a pointer to a static
member function in C++ (with the exception that there really can be a
'this' available in the function, but that it can refer to an object
which is not of type SomeClass).

Reply via email to