projects
/
gitmo/Class-MOP.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
0bfc85b
)
oops, put Object::_new back in for Moose
Yuval Kogman [Wed, 13 Aug 2008 22:20:27 +0000 (22:20 +0000)]
lib/Class/MOP/Object.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Class/MOP/Object.pm
b/lib/Class/MOP/Object.pm
index
1b7d2c5
..
9d4fd8d
100644
(file)
--- a/
lib/Class/MOP/Object.pm
+++ b/
lib/Class/MOP/Object.pm
@@
-16,6
+16,10
@@
sub meta {
Class::MOP::Class->initialize(blessed($_[0]) || $_[0]);
}
+sub _new {
+ shift->meta->new_object(@_);
+}
+
# RANT:
# Cmon, how many times have you written
# the following code while debugging: