Skip to content

Instantly share code, notes, and snippets.

@jnthn
Created July 21, 2010 22:34
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/485246 to your computer and use it in GitHub Desktop.
Save jnthn/485246 to your computer and use it in GitHub Desktop.
--- a/src/cheats/parrot/Sub.pir
+++ b/src/cheats/parrot/Sub.pir
@@ -44,7 +44,8 @@
$P0 = typeof code
closure = new $P0
transform_to_p6opaque closure
- do = clone self
+ do = getattribute code, '$!do'
+ do = clone do
$P0 = prophash self
x_setprophash do, $P0
setattribute closure, '$!do', do
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment