projects
/
gitmo/Class-MOP.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
19b79c1
)
add inline version of rebless_instance_structure
Jesse Luehrs [Thu, 25 Jun 2009 15:15:20 +0000 (10:15 -0500)]
lib/Class/MOP/Instance.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Class/MOP/Instance.pm
b/lib/Class/MOP/Instance.pm
index
d6d8c29
..
fb14cfd
100644
(file)
--- a/
lib/Class/MOP/Instance.pm
+++ b/
lib/Class/MOP/Instance.pm
@@
-214,6
+214,11
@@
sub inline_strengthen_slot_value {
$self->inline_set_slot_value($instance, $slot_name, $self->inline_slot_access($instance, $slot_name));
}
+sub inline_rebless_instance_structure {
+ my ($self, $instance, $class_variable) = @_;
+ "bless $instance => $class_variable";
+}
+
1;
__END__