call all triggers in rebless_instance - tests now pass.
authorKaren Etheridge <ether@cpan.org>
Wed, 1 Jun 2011 00:40:09 +0000 (00:40 +0000)
committerJesse Luehrs <doy@tozt.net>
Sun, 19 Jun 2011 07:30:07 +0000 (02:30 -0500)
commit8005c51c215a30792afaa91dda43b739ef0e4520
treee9288c0cd8d4ba3fd87371de4d13f9cdfae7ba8f
parent50e3a18b94cb8ab8dc752c71cd9b2fabb7e75db0
call all triggers in rebless_instance - tests now pass.

refactored common code out into a sub. As it happens, this is sufficient even for the immutable path, because $meta->rebless_instance is not inlined, even though there is a sub in CMOP for generating inlineable code!
lib/Class/MOP/Class.pm
lib/Moose/Meta/Class.pm
t/basics/rebless.t