projects
/
gitmo/Class-MOP.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
add a warning for the deprecated Class::MOP::Instance->bless_intsance_structure method
[gitmo/Class-MOP.git]
/
lib
/
Class
/
MOP
/
Instance.pm
diff --git
a/lib/Class/MOP/Instance.pm
b/lib/Class/MOP/Instance.pm
index
16dd6e0
..
700ec75
100644
(file)
--- a/
lib/Class/MOP/Instance.pm
+++ b/
lib/Class/MOP/Instance.pm
@@
-75,6
+75,9
@@
sub create_instance {
# for compatibility
sub bless_instance_structure {
+ warn 'The bless_instance_structure method is deprecated.'
+ . " It will be removed in a future release.\n";
+
my ($self, $instance_structure) = @_;
bless $instance_structure, $self->_class_name;
}