/usr/lib/perl6/sources/AAC61C0EC6F88780427830443A057030CAA33846 is in rakudo 2018.03-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | use nqp;
package EXPORT::cached {
multi sub trait_mod:<is>(Routine $r, :$cached!) {
my %cache;
nqp::bindattr_i($r, Routine, '$!onlystar', 0 )
if $r.onlystar; # disable optimization
$r.wrap(-> |c {
my $key := c.gist;
%cache.EXISTS-KEY($key)
?? %cache{$key}
!! (%cache{$key} := callsame);
});
}
multi sub trait_mod:<is>(Method $m, :$cached!) {
X::NYI.new(:feature("'is cached' on methods")).throw;
}
OUR::{'&trait_mod:<is>'} := &trait_mod:<is>;
}
package EXPORT::macros {
OUR::<EXPERIMENTAL-MACROS> := True;
}
package EXPORT::smallnatives {
our native int1 is repr('P6int') is Int is nativesize( 1) { }
our native int2 is repr('P6int') is Int is nativesize( 2) { }
our native int4 is repr('P6int') is Int is nativesize( 4) { }
our native uint1 is repr('P6int') is Int is nativesize( 1) is unsigned { }
our native bit is repr('P6int') is Int is nativesize( 1) is unsigned { }
our native uint2 is repr('P6int') is Int is nativesize( 2) is unsigned { }
our native uint4 is repr('P6int') is Int is nativesize( 4) is unsigned { }
}
package EXPORT::pack {
OUR::<EXPERIMENTAL-PACK> := True;
}
package EXPORT::collation {
OUR::<EXPERIMENTAL-COLLATION> := True;
}
|