Re: Re[1]: Newbie: how to enumerate methods in a class

Syver Enstad <[email protected]> 09 Dec 2002 11:47:44 +0100
Newsgroups gmane.emacs.eieio
Message-ID <[email protected]>
"Eric M. Ludlam" <[email protected]> writes:

> That might look like this:
> 
> (let ((methods (eieio-all-generic-functions 'yourclasshere)))
>    (while methods
>       (if (string-match "^test-" (symbol-string (car methods)))
>          (funcall (car methods) yourobject other-param))
>       (setq  methods (cdr methods))))
> 
> Good Luck.  I'll have to try our your new program.

Thanks Eric, that looks very much like what I want. I'll fix up my
test-loader class so that it can instantiate test-case's from all
methods prefixed with test-. I'll post updates here when I am through.
 

-- 

Vennlig hilsen 

Syver Enstad




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf