summaryrefslogtreecommitdiff
path: root/perl/Wallet/Object
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2007-09-20 00:38:23 +0000
committerRuss Allbery <rra@stanford.edu>2007-09-20 00:38:23 +0000
commit0837b2e78a283d27a288ca3bfe49490f940a77b9 (patch)
tree2693920663495deef5cb7899bd6907a728a0f299 /perl/Wallet/Object
parent2379ba11d250415c1a2d8b980dac9d2d7b166b94 (diff)
Update the documentation to get rid of the stupid error return from
attr and instead tell the caller to call error() on an empty return to see if there was a problem.
Diffstat (limited to 'perl/Wallet/Object')
-rw-r--r--perl/Wallet/Object/Base.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl/Wallet/Object/Base.pm b/perl/Wallet/Object/Base.pm
index b366d6e..fff06f4 100644
--- a/perl/Wallet/Object/Base.pm
+++ b/perl/Wallet/Object/Base.pm
@@ -646,8 +646,9 @@ be an attribute type known to the underlying object implementation. The
default implementation of this method rejects all attributes as unknown.
If no other arguments besides ATTRIBUTE are given, returns the values of
-that attribute, if any, as a list. On error, returns a list containing one
-undefined element.
+that attribute, if any, as a list. On error, returns the empty list. To
+distinguish between an error and an empty return, call error() afterwards.
+It is guaranteed to return undef unless there was an error.
If other arguments are given, sets the given ATTRIBUTE values to VALUES,
which must be a reference to an array (even if only one value is being set).