Re[1]: Newbie: Old methods hanging around when refactoring code
"Eric M. Ludlam" <[email protected]> Sun, 8 Dec 2002 09:58:54 -0500
| Newsgroups | gmane.emacs.eieio |
|---|---|
| Message-ID | <[email protected]> |
>>> Syver Enstad <[email protected]> seems to think that: > >When I refactor my code old methods from the class I am working on >keep hanging around. I am getting tired of exiting emacs every five >minutes to be sure that what I see is what I get when testing. Any >tips, hints? Hi, EIEIO has a memoizing dispatcher, and there are no un-binding functions that will go through the method hash table to delete old calling trails. I think some code like this can wipe out old methods though: (fset 'dead-method nil) (put eieio-method-obarray nil) but that is a pretty heavy hammer if you have other classes using that method. Good Luck Eric -- Eric Ludlam: [email protected], [email protected] Home: http://www.ludlam.net Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net GNU: www.gnu.org ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf