Re[2]: Newbie: Old methods hanging around when refactoring code

"Eric M. Ludlam" <[email protected]> Sun, 8 Dec 2002 10:24:38 -0500
Newsgroups gmane.emacs.eieio
Message-ID <[email protected]>
>>> "Eric M. Ludlam" <[email protected]> seems to think that:
>>>> 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)
  [ ... ]

Oops, forgot my `put' syntax.  Try this insead:

(put 'dead-method 'eieio-method-obarray nil)

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