Permalink
Browse files

Mu.WHICH, ObjAt

  • Loading branch information...
1 parent e1ffe9b commit a878b89a366e0de0b6162a93c9c9f6d75c0135cf @moritz moritz committed Aug 1, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/Mu.pod
View
@@ -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.