projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
f253044
)
bless into Moose::XS::Meta::Instance
Yuval Kogman [Tue, 19 Aug 2008 15:48:03 +0000 (15:48 +0000)]
Moose.xs
patch
|
blob
|
blame
|
history
diff --git
a/Moose.xs
b/Moose.xs
index
52c04d2
..
f1ff831
100644
(file)
--- a/
Moose.xs
+++ b/
Moose.xs
@@
-315,7
+315,7
@@
STATIC MI *new_mi (pTHX_ HV *stash, AV *attrs) {
}
STATIC SV *new_mi_obj (pTHX_ MI *mi) {
- return newRV_noinc(newSViv(PTR2IV(mi)));
+ return sv_bless( newRV_noinc(newSViv(PTR2IV(mi))), gv_stashpvs("Moose::XS::Meta::Instance", 0) );
}
STATIC SV *attr_to_meta_instance(pTHX_ SV *meta_attr) {