[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
re: Getting hold of the method object currently executed
- To: gamin@MOE.MCRCIM.MCGILL.EDU, Gregor.pa@Xerox.COM
- Subject: re: Getting hold of the method object currently executed
- From: Dick Gabriel <RPG@SAIL.Stanford.EDU>
- Date: 17 Nov 89 08:39 PST
- Cc: CommonLoops.PA@Xerox.COM
- Redistributed: CommonLoops.PA
[In reply to message from gamin@Moe.McRCIM.McGill.EDU sent Fri, 17 Nov 89 09:30:33 EST.]
If having access to the method being run is common enough, would it
warrant a change to the standard (gasp!) or a special extension?
I did not save the original comment, so this might be redundant:
What is the purpose of being able to get a hold of the current method
that cannot be served by *you* modifying your source code to
note it whatever way you want?
If you simply want to do some different control flow depending on the
method, the method object itself is not particularly interesting, since I
suspect you would want to discriminate on the class of the method, which
implies making subclasses of STANDARD-METHOD, which is enough of the
change to the innards of the meta-structure of CLOS that you would
probably be in a good position to directly modify the source of methods to
accomplish your goals.
If what you want to do is to change the effective method dynamically,
you will probably need to make your own method combination type, as
Looked at another way, why aren't you also proposing to modify Lisp
to note the currently executing function?