Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (14 sloc) 0.583 kb
class OptBeta;
use CgOp;
# A simple Perl6 compiler generates a lot of expressions of the form
# (-> $x { block })($y), due to control structures and regexes. Try to clean
# that up here.
method make_call($var, *@params) {
my $nonopt =
positionals => [ @params ],
invocant => => $var));
my @lex = $*CURLEX<!sub>.lookup_lex($var) or return $nonopt;
return $nonopt unless @lex[0] eq 'sub' && @lex[4].is_inlinable;
return => [ "_inline", @lex[4], @params ]);
Jump to Line
Something went wrong with that request. Please try again.