summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-07-24 08:15:45 +0200
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-07-24 08:15:45 +0200
commit2d0587d88005126a9e730f38f7feb0c203e238a4 (patch)
treed78e554db922a5fd96dfd45a40cfd77f4106b6f4 /pod
parent5945e41e91490c43ef1007c462cb87c2cbc71af5 (diff)
downloadperl-2d0587d88005126a9e730f38f7feb0c203e238a4.tar.gz
Todo: decapsulation of smart match argument
Diffstat (limited to 'pod')
-rw-r--r--pod/perltodo.pod7
1 files changed, 7 insertions, 0 deletions
diff --git a/pod/perltodo.pod b/pod/perltodo.pod
index 06b5c771e0..ba0462e47a 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<opcode.pl>)
+=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