friedo/perl-namespace-sweep — pull request #1 by RsrchBoy (2011-10-16 04:28:06+00:00)
Title: Use CMOP if it's already loaded

So, I haven't touched any pod or tests yet, but what do you think about this? Calling get_method_list() on the metaclass is more correct, as inherited methods don't exist in our symbol table. Also, if CMOP is already loaded, I can't think of any downside to using it to figure out methods... And this would mean we're doing the same thing as autoclean in the (probably pretty common) case that we're using ns::sweep either in the context of a Moose class or CMOP has already been loaded for some reason (a Moose class is being used, some other class used autoclean, etc, etc).