Skip Menu |

This queue is for tickets about the Class-Handle CPAN distribution.

Report information
The Basics
Id: 14552
Status: resolved
Worked: 30 min
Priority: 0/
Queue: Class-Handle

People
Owner: Nobody in particular
Requestors: nothingmuch [...] woobling.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Class::Handle lacks subclasses method found in Class::Inspector
Class::Handle has almost complete functionality of the Class::Inspector code, but not the subclasses method. A possible fix, given the tight coupling of Class::Handle and Class::Inspector, which lets you lower the maintenance of C::H is code like this: BEGIN { foreach my $meth (Class::Inspector->methods("Class::Inspector")){ my $subref = sub { my $self = ref $_[0] ? shift : return undef; Class::Inspector->$meth($self->{name}); }; { no strict; *{$meth} = $subref }; } }
RESOLVED Cleaned up Class::Handle in general (it needed it) and added ->subclasses. I will never be linking the two APIs together. It would be very bad practise to have one API unstabley morph based on the API of another API (even if they are in a similar area). It might be a different story if both classes were in the same dist, but as long as they are seperate I'll be added methods to Class::Handle manually.