Skip Menu |

This queue is for tickets about the Moose CPAN distribution.

Report information
The Basics
Id: 44048
Status: resolved
Priority: 0/
Queue: Moose

People
Owner: Nobody in particular
Requestors: toddr [...] cpanel.net
Cc:
AdminCc:

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



Subject: Request fo rebless_instance in Moose
Class::MOP::Class seems to have a feature (rebless_instance) where I can tell my class to become a child class. Example: $self->rebless_instance('child_class', ?%args); Moose does not seem to support this. Would it be possible to make this available?
Todd, What makes you think that Moose does not support this? Moose::Meta::Class is-a Class::MOP::Class, it should just work. If you ran into an issue or error, please attach a test case to reproduce. Thanks, - Stevan On Wed Mar 11 18:37:25 2009, todd_rinaldo wrote: Show quoted text
> Class::MOP::Class seems to have a feature (rebless_instance) where I > can tell my class to become a child class. > > Example: $self->rebless_instance('child_class', ?%args); > > Moose does not seem to support this. Would it be possible to make this > available?
Moose does support rebless_instance, if you encounter a bug with this feature, please submit another bug with a test case attached. - Stevan