[VPM] Reflection

Malcolm Dew-Jones yf110 at victoria.tc.ca
Thu Jun 26 17:43:41 CDT 2003




On Thu, 26 Jun 2003, abez wrote:

> 
> Ok that works I figured out my namespace was the problem. I wasn't looking at an
> actual package.
> 
> Ok then thanks for the code, here's the code to grab all the methods and put
> them in a hash (so you can just use keys to get a list). Since we can have
> multiple inheritance we have to watch for cycles too.

(snip)

The caveat being, of course that the code shown (but snipped) lists all
the sub's, some of which may not work as methods, and doesn't list
anything handled by autoload.

So, for your own classes it may be fine, but will not be 100% reliable for
classes in general. 





More information about the Victoria-pm mailing list