On Jun 21, 2006, at 4:11 PM, Björn Eiríksson wrote:
Of course you're not. How would whatever's calling this callback
method know to pass in the magic parameter that gets mapped to
'self'?
That's the whole point about instance methods, and why Mars said
that you couldn't do anything useful with them -- an instance
method, in any language, involves passing along some extra
information that identifies the instance. There is no way for you
to know (because it's not documented) what form this information
takes, so there is certainly no reliable way for whatever's
invoking the callback to know that and do it properly.
Well, you can do it in C++ with C++ classes
I don't know what you're talking about. A C++ compiler will not allow
you to get the address of an instance method.
Mars Saxman
REAL Software
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>