From: Rafael Garcia-Suarez Date: Fri, 24 Jul 2009 06:15:45 +0000 (+0200) Subject: Todo: decapsulation of smart match argument X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2d0587d88005126a9e730f38f7feb0c203e238a4;p=p5sagit%2Fp5-mst-13.2.git Todo: decapsulation of smart match argument --- diff --git a/pod/perltodo.pod b/pod/perltodo.pod index 06b5c77..ba0462e 100644 --- a/pod/perltodo.pod +++ b/pod/perltodo.pod @@ -818,6 +818,13 @@ It would be nice to forbid labels with keyword names, to avoid confusion. The prototype of truncate() is currently C<$$>. It should probably be C<*$> instead. (This is changed in F) +=head2 decapsulation of smart match argument + +Currently C<$foo ~~ $object> will die with the message "Smart matching a +non-overloaded object breaks encapsulation". It would be nice to allow +to bypass this by using explictly the syntax C<$foo ~~ %$object> or +C<$foo ~~ @$object>. + =head2 error reporting of [$a ; $b] Using C<;> inside brackets is a syntax error, and we don't propose to change