projects
/
gitmo/Moose.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
document that auto_deref is wantarray-based
[gitmo/Moose.git]
/
xs
/
HasMethods.xs
diff --git
a/xs/HasMethods.xs
b/xs/HasMethods.xs
index
78f15dc
..
e136abe
100644
(file)
--- a/
xs/HasMethods.xs
+++ b/
xs/HasMethods.xs
@@
-37,8
+37,8
@@
mop_update_method_map(pTHX_ HV *const stash, HV *const map)
continue;
}
- /* $map->{$method_name} = undef */
- sv_setsv(method, &PL_sv_undef);
+ /* delete $map->{$method_name} */
+ (void)hv_delete(map, method_name, method_name_len, G_DISCARD);
}
}