Unless we've got this somewhere already, I think it would be useful to
have some examples of simple Perl6 code, and the bytecode we expect
this to compile down to. This would help to fix some ideas, and make
sure that everyone's on the same page. As an example, what bytecode
goes with the following:
# simple case
sub example1($num)
{
my $x = 1;
return $num + $x;
}
# nested lexical scopes
sub example2($num)
{
my $x = 1;
{
my $x = 2;
return $num + $x;
}
}
# nested lexical scopes, with eval
sub example3($str)
{
my $x = 1;
{
my $x = 2;
my $y = $str;
eval $str;
}
}
JEff