Skip to content

Instantly share code, notes, and snippets.

@jnthn
Created May 16, 2013 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnthn/5595470 to your computer and use it in GitHub Desktop.
Save jnthn/5595470 to your computer and use it in GitHub Desktop.
diff --git a/src/core/Scalar.pm b/src/core/Scalar.pm
index 5589caa..f4ba820 100644
--- a/src/core/Scalar.pm
+++ b/src/core/Scalar.pm
@@ -4,4 +4,8 @@ my class Scalar {
my $d := $!descriptor;
nqp::isnull($d) ?? Str !! $d.name()
}
+ method of() {
+ my $d := $!descriptor;
+ nqp::isnull($d) ?? Mu !! $d.of()
+ }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment