Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Improve docs for infix =:=
  • Loading branch information
moritz committed Feb 14, 2015
1 parent 998065c commit 9a69456
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions lib/Language/operators.pod
Expand Up @@ -958,11 +958,21 @@ types must override method C<WHICH>.
=head2 infix C«=:=»
proto sub infix:<=:=>(Mu $a is rw, Mu $b is rw) returns Bool:D is assoc<chain>
multi sub infix:<=:=>(Mu $a is rw, Mu $b is rw)
proto sub infix:<=:=>(Mu \a, Mu \b) returns Bool:D is assoc<chain>
multi sub infix:<=:=>(Mu \a, Mu \b)
Container identity. Returns L<True> if both arguments are bound to the same
container.
container. If it returns C<True>, it generally means that modifying one will
also modify the other.
my ($a, $b) = (1, 3);
say $a =:= $b; # False
$b = 2;
say $a; # 1
$b := $a;
say $a =:= $b; # True
$a = 5;
say $b; # 5
=head2 infix C«~~»
Expand Down

0 comments on commit 9a69456

Please sign in to comment.