Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Mu.WHICH, ObjAt
  • Loading branch information
moritz committed Aug 1, 2012
1 parent e1ffe9b commit a878b89
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/Mu.pod
Expand Up @@ -132,4 +132,12 @@ Performs a type check. Returns C<True> if C<$other> conforms to the invocant
This is the method that is triggered on smart-matching against type objects,
for example in C<if $var ~~ Int { ... }>.
=head2 WHICH
multi method WHICH() returns ObjAt:D
Returns an object of type L<ObjAt> which uniquely identifies the object.
Value types override this method which makes sure that two equivalent objects
return the same return value from C<WHICH>.
=end pod

0 comments on commit a878b89

Please sign in to comment.