diff options
author | Steffen Müller <0mgwtfbbq@sneakemail.com> | 2006-02-06 11:58:44 +0100 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-02-07 14:37:15 +0000 |
commit | 299476e067e522a02a8665fc1b3cd7f58f408de0 (patch) | |
tree | 695216d2aa77f5273dca1aa3b62c89ae8b2148cb /lib/overload.pm | |
parent | daa2adfd3a5f888cb1c60469c1ec42e215d455bb (diff) | |
download | perl-299476e067e522a02a8665fc1b3cd7f58f408de0.tar.gz |
Re: [PATCH] Documentation patch for overload
Message-ID: <43E71DD4.5010108@sneakemail.com>
p4raw-id: //depot/perl@27120
Diffstat (limited to 'lib/overload.pm')
-rw-r--r-- | lib/overload.pm | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/overload.pm b/lib/overload.pm index 943d8367cb..d511f2c142 100644 --- a/lib/overload.pm +++ b/lib/overload.pm @@ -672,8 +672,9 @@ value is a scalar and not a reference. Since some operations can be automatically generated from others, there is a minimal set of operations that need to be overloaded in order to have -the complete set of overloaded operations at one's disposal. This minimal -set is: +the complete set of overloaded operations at one's disposal. +Of course, the autogenerated operations may not do exactly what the user +expects. See L<MAGIC AUTOGENERATION> above. The minimal set is: + - * / % ** << >> x <=> cmp @@ -681,10 +682,8 @@ set is: atan2 cos sin exp log sqrt int Additionally, you need to define at least one of string, boolean or -numeric conversions. The string conversion can also be used to -emulate concatenation, so we'll assume string conversion is defined. -It usually makes sense to explicitly overload all conversion -operations. +numeric conversions because any one can be used to emulate the others. +The string conversion can also be used to emulate concatenation. =head1 Losing overloading |