develooper Front page | perl.perl5.changes | Postings from May 2008

Change 33787: Document ~~ behaviour change with objects in perldelta

From:
Rafael Garcia-Suarez
Date:
May 4, 2008 08:45
Subject:
Change 33787: Document ~~ behaviour change with objects in perldelta
Change 33787 by rgs@hannibal on 2008/05/04 15:35:54

	Document ~~ behaviour change with objects in perldelta

Affected files ...

... //depot/maint-5.10/perl/pod/perl5101delta.pod#4 edit

Differences ...

==== //depot/maint-5.10/perl/pod/perl5101delta.pod#4 (text) ====
Index: perl/pod/perl5101delta.pod
--- perl/pod/perl5101delta.pod#3~33786~	2008-05-04 06:05:26.000000000 -0700
+++ perl/pod/perl5101delta.pod	2008-05-04 08:35:54.000000000 -0700
@@ -20,6 +20,13 @@
 The semantics of C<use feature :5.10*> have changes slightly.
 See L<"Modules and Pragmata"> for more information.
 
+=item *
+
+It is now a run-time error to use the smart match operator C<~~>
+with an object that has no overload defined for it. (This way
+C<~~> will not break encapsulation by matching against the
+object's internal representation as a reference.)
+
 =back
 
 
End of Patch.



Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About