Skip to content

Instantly share code, notes, and snippets.

@lizmat
Created December 5, 2017 09:45
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 lizmat/155cc1e437f9abbd3e9421054b603099 to your computer and use it in GitHub Desktop.
Save lizmat/155cc1e437f9abbd3e9421054b603099 to your computer and use it in GitHub Desktop.
diff for making let/temp use an IterationBuffer underneath
diff --git a/src/Perl6/World.nqp b/src/Perl6/World.nqp
index 0f61d6a..cc8de3d 100644
--- a/src/Perl6/World.nqp
+++ b/src/Perl6/World.nqp
@@ -2446,7 +2446,10 @@ class Perl6::World is HLL::World {
$block[0].push(QAST::Op.new(
:op('bind'),
QAST::Var.new( :name($value_stash), :scope('lexical'), :decl('var') ),
- QAST::Op.new( :op('list') )));
+ QAST::Op.new(
+ :op('create'),
+ QAST::WVal.new( :value(self.find_symbol(['IterationBuffer']))),
+ )));
$block.symbol($value_stash, :scope('lexical'));
# Create a phaser block that will do the restoration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment