Skip to content

Instantly share code, notes, and snippets.

@gfldex
Created November 21, 2015 06:59
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 gfldex/a45c8c592ff963ba53bc to your computer and use it in GitHub Desktop.
Save gfldex/a45c8c592ff963ba53bc to your computer and use it in GitHub Desktop.
m: my $b = 1;
my \r := Proxy.new(
FETCH => sub {},
STORE => -> $, $new { $b = $new + 1 }
);
my $a := r;
say $a;
$a = 4;
say $a;
$a.VAR.^name.say;
$a.WHAT.say;
$a.^name.say;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment