At 11:44 AM -0500 1/15/03, attriel wrote:
 >> > >I think what Jonathan asked for was an operator for
 > >returning a method (as an object) which can be invoked
 > >later with some arguments (or even applied with a
 > >partial list of arguments for currying).
 > >
 > >This would be a lot more useful than a yes-or-no
 > >answer about the existence of a method.
 Exactly. 'Yes' might be valid one moment, and invalid the next. Not a
 very useful operation... Returning a coderef on the other hand is
 useful.
Er.  How could "Is it possible to call this method" become invalid, but
the fptr remains valid?  I'm not sure that I follow that ...
I get the function pointer. Points to a method. Someone comes and redefines that method in the object's class, or deletes it outright. I still have a handle, so the code doesn't go away, but it's no longer the right code for that method name.


--
Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk


Reply via email to