Browse files

Document error "Smart matching a non-overloaded object breaks encapsu…


That error was added in e67b97b
  • Loading branch information...
1 parent e5de85f commit 229c18ce2bca758e413c5cf4f86e43dac52f4884 @rgs rgs committed Feb 13, 2009
Showing with 6 additions and 0 deletions.
  1. +6 −0 pod/perldiag.pod
6 pod/perldiag.pod
@@ -3895,6 +3895,12 @@ superfluous.
(W signal) The signal handler named in %SIG doesn't, in fact, exist.
Perhaps you put it into the wrong package?
+=item Smart matching a non-overloaded object breaks encapsulation
+(F) You should not use the C<~~> operator on an object that does not
+overload it: Perl refuses to use the object's underlying structure for
+the smart match.
=item sort is now a reserved word
(F) An ancient error message that almost nobody ever runs into anymore.

0 comments on commit 229c18c

Please sign in to comment.