Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Mu.WHICH, ObjAt

  • Loading branch information...
commit a878b89a366e0de0b6162a93c9c9f6d75c0135cf 1 parent e1ffe9b
@moritz moritz authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/Mu.pod
View
8 lib/Mu.pod
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.