Skip to content

Instantly share code, notes, and snippets.

@jnthn
Created July 3, 2010 13:14
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/462559 to your computer and use it in GitHub Desktop.
Save jnthn/462559 to your computer and use it in GitHub Desktop.
Index: runtime/parrot/library/P6object.pir
===================================================================
--- runtime/parrot/library/P6object.pir (revision 47970)
+++ runtime/parrot/library/P6object.pir (working copy)
@@ -111,7 +111,13 @@
.sub 'WHAT' :method :nsentry
.local pmc how, what
how = self.'HOW'()
- .tailcall how.'WHAT'()
+ what = getattribute how, 'protoobject'
+ .return (what)
.end
@@ -162,25 +168,13 @@
=over
-=item WHAT()
-
-Return the protoobject for this metaclass.
-
-=cut
-
-.namespace ['P6metaclass']
-
-.sub 'WHAT' :method :nsentry
- $P0 = getattribute self, 'protoobject'
- .return ($P0)
-.end
-
=item isa(x)
Return a true value if the invocant 'isa' C<x>.
=cut
+.namespace ['P6metaclass']
.sub 'isa' :method :multi(_,_, _)
.param pmc obj
.param pmc x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment