projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
c5d6da2
)
Doc note about explicit omission of each() in the native attr hash implementation.
Karen Etheridge [Wed, 24 Nov 2010 17:52:12 +0000 (09:52 -0800)]
lib/Moose/Meta/Attribute/Native/Trait/Hash.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Meta/Attribute/Native/Trait/Hash.pm
b/lib/Moose/Meta/Attribute/Native/Trait/Hash.pm
index
9a383c6
..
b5b0dc6
100644
(file)
--- a/
lib/Moose/Meta/Attribute/Native/Trait/Hash.pm
+++ b/
lib/Moose/Meta/Attribute/Native/Trait/Hash.pm
@@
-144,6
+144,9
@@
When called as a setter, this method returns the value that was set.
=back
+Note that C<each> is deliberately omitted, due to its stateful interaction
+with the hash iterator. C<keys> or C<kv> are much safer.
+
=head1 METHODS
=over 4