Raku Cases › Scoping & phasers

Scoping & phasers

Lexical, dynamic, package and state variables, and the blocks that run at a set moment.

202 rules from 137 tests. 122 of those tests are confirmed on both engines: Raku++ and Rakudo 2026.11 both pass, or Raku++ gives Rakudo's answer on every probe of a family. The verdict is the test's, not each rule's. How to read a case.

bound-type-namesRaku++ matches Rakudo on 25 of 29 probes2026-11-28 · a6124a27
  1. 1

    A setting type's name that a scope binds to something else (a constant, a sigilless name, an enum value, a subset, a role, a package) means that thing where the binding is in scope and the setting's type everywhere else.

our-writeRaku++ matches Rakudo on 21 of 34 probes2026-11-28 · 04a1722e · #274
  1. 2

    OUR:: names the package the code was compiled in, whoever calls it.

shadow-constantRaku++ matches Rakudo on 37 of 38 probes2026-11-28 · 04a1722e
  1. 1

    A constant named like a built-in type and bound to another type makes the name mean that other type.

    after my constant Int = Version, Int means Version

shadow-enumRaku++ matches Rakudo on 37 of 38 probes2026-11-28 · 04a1722e
  1. 1

    An enum value named like a built-in type is that enum value where the enum is in scope.

shadow-packageRaku++ matches Rakudo on 36 of 38 probes2026-11-28 · 04a1722e
  1. 1

    package Int … makes the name Int a package where the declaration is in scope.

6e-gatingRaku++ passesRakudo cannot run it2026-08-19 · 387d2c88
  1. 21

    From 6.e a pseudo-package lookup that misses is a Failure; before 6.e it is an undefined value and never a throw.

    MY::<$nosuchvar>.^name is Failure under 6.e and Any under 6.d

  2. 22

    From 6.e LEXICAL:: refuses a dynamic variable; before 6.e it hands it back.

    my $*dyn = 42; sub f { say LEXICAL::<$*dyn> }; f says 42 under 6.d and fails with "Cannot access" under 6.e

More from this test: Dates & times (2), Exceptions & control flow (1), Hashes & sets (3), I/O & processes (2), Lists & laziness (8), Numerics (1), Classes, roles & the MOP (2), Operators (1), Everything else (2), Regexes & grammars (2), Signatures & dispatch (1), Strings & Unicode (6), divergences (1).

base64-sextetRaku++ passesRakudo passes2026-07-23 · 820a2168
  1. 2

    FIRST, NEXT and LAST phasers inside a .map block fire with loop semantics in the block's own scope, so LAST sees the final iteration's parameters.

More from this test: Exceptions & control flow (1), Lists & laziness (1), Regexes & grammars (1), Signatures & dispatch (4).

batch1-silent-wrong-answersRaku++ passesRakudo passes2026-08-27 · 0d989883
  1. 5

    let inside a method restores its variable on an unsuccessful exit, as it does in a sub.

More from this test: I/O & processes (3), Lists & laziness (2), Numerics (1), Everything else (2).

block-constant-not-over-core-termRaku++ passesRakudo passes2026-11-08 · 1c8c779c
  1. 1

    A plain constant in a block or an EVAL does not take the place of a CORE term outside it: a bare name finds the lexical scopes and CORE before the package the constant is installed in.

    after { constant Less = 42 }, Less outside the block is still CORE's

  2. 2

    A block's constant whose name CORE has no term for is found outside the block through the package.

    { constant FOO = 1 }; FOO is 1

block-pad-scopesRaku++ passesRakudo passes2026-10-01 · ee4a533a
  1. 1

    A my declared in an if, loop, given/when or bare block body is fresh on each entry: a closure keeps its own iteration's variable, nothing leaks into the next iteration, and each recursive activation has its own.

  2. 2

    A block's own my variables shadow at every nesting level and are visible to temp, MY::, EVAL, :=, typed and native declarations, CATCH and LEAVE.

callable-for-phaser-sees-stateRaku++ passesRakudo passes2026-10-10 · e1663c0c
  1. 1

    The Callable that &block.callable_for_phaser('LAST') returns sees the block's state variables, also when it is taken before the block has ever run.

    with { state $s = 0; NEXT $s++; LAST say "$s files"; … } the LAST callable reads $s

callers-call-formRaku++ passesRakudo passes2026-11-13 · ef2e778b · rakudo#2639
  1. 1

    The call forms CALLERS::('$x'), CALLER::(…) and a package's M::(…) look the name up in that package, as the <…> form does.

    CALLERS::('$x') is the lookup CALLERS::<$x>, not a call of a routine named CALLERS::

  2. 2

    CALLERS::<$_> reaches a routine's own $_ or the mainline's; a given or for topic is not a dynamic $_.

class-begin-and-run-sinkRaku++ passesRakudo passes2026-08-15 · 281a0ff0
  1. 1

    A BEGIN block in a class body runs and can add methods through ::?CLASS.^add_method.

    BEGIN { for <get head put post delete> -> $method { ::?CLASS.^add_method: $method, method (…) {…} } } gives the class a get

More from this test: I/O & processes (1).

clone-semanticsRaku++ passesRakudo passes2026-09-02 · ecdadbad
  1. 5

    Cloning a Routine or Block gives a clone whose state variables start fresh instead of being shared with the original.

More from this test: Containers & assignment (1), Classes, roles & the MOP (4), Operators (1).

compose-cross-placeholderRaku++ passesRakudo passes2026-07-30 · 6bac763b
  1. 5

    A placeholder $^b (or $:b) and a later bare $b in the same block are one variable.

More from this test: Operators (4).

conformance-phase2-introspectionRaku++ passesRakudo passes2026-07-25 · 5103b4d7
  1. 3

    .dynamic asks about the variable: a variable is dynamic by name only when it has the * twigil.

More from this test: Containers & assignment (1), Exceptions & control flow (2), Hashes & sets (1), I/O & processes (1), Classes, roles & the MOP (1), Signatures & dispatch (2), Types & coercion (1).

control-handled-leaves-block-lax-package-var-str-warnsRaku++ passesRakudo passes2026-09-17 · 2e994990
  1. 3

    Under no strict, an undeclared variable assigned inside a class body is the package's variable.

    after no strict; class Foo { $foo = 42 }, $Foo::foo reads it

More from this test: Exceptions & control flow (1), Stringification (1).

control-vs-catch-phaserRaku++ passesRakudo passes2026-07-22 · 60a51a27
  1. 1

    A block may hold both a CATCH and a CONTROL phaser; only a second CATCH raises X::Phaser::Multiple.

corpus-batch-2Raku++ passesRakudo passes2026-07-22 · c9beb901
  1. 1

    A bare $ is an anonymous state variable with one persistent slot per textual occurrence.

    say ++$ inside a loop numbers the lines

More from this test: Compile-time errors (1), Regexes & grammars (2).

cro-core-clusterRaku++ passesRakudo passes2026-08-06 · 9c84434c
  1. 1

    A state variable declared in a loop body is re-initialised each time the loop statement itself is executed anew, while a routine-level state variable persists across calls.

    a ++state $n counter in a for inside a sub gives 1,2,3 on the first call and 1,2 on the second

    Also held by loop-state-frame-scan.

More from this test: Concurrency (4), Containers & assignment (1), Classes, roles & the MOP (2), Regexes & grammars (1).

cro-live-clusterRaku++ passesRakudo passes2026-07-23 · 3c1b7a9e
  1. 3

    A dynamic variable is visible through method call frames as well as sub frames.

More from this test: Containers & assignment (1), Modules (1), Classes, roles & the MOP (2), Signatures & dispatch (1), Syntax & parsing (2).

digest-native-widths-clusterRaku++ passesRakudo passes2026-08-03 · cc0f34e5
  1. 5

    state $x .= new initializes only once.

    state buf32 $w .= new inside a reduce block keeps the same buffer on every iteration

More from this test: Containers & assignment (2), Lists & laziness (2), Numerics (4), Operators (2).

dist-suite-quartetRaku++ passesRakudo passes2026-08-05 · 4e2c20cd
  1. 12

    my $x will leave {…} = v runs the block at scope exit with $x as the topic.

More from this test: Dates & times (1), Exceptions & control flow (1), I/O & processes (1), Classes, roles & the MOP (4), Operators (1), Everything else (1), Regexes & grammars (2), Signatures & dispatch (2), Stringification (1), Syntax & parsing (3), Types & coercion (2).

doc-renders-without-runningRaku++ passesRakudo passes2026-11-08 · 07dc2ee9
  1. 2

    A DOC phaser is the phaser it prefixes under --doc, and nothing otherwise.

    DOC INIT {…} runs only under --doc, and DOC BEGIN {…} runs under --doc

More from this test: Everything else (1).

dynamic-falls-back-to-globalRaku++ passesRakudo passes2026-10-31 · e6777420 · #77
  1. 1

    A dynamic variable no caller declares is looked up in GLOBAL, twigil dropped, before it is an error.

    %*RED-DEFAULT-DRIVERS<default> reads what was written to %GLOBAL::RED-DEFAULT-DRIVERS

  2. 2

    The GLOBAL fallback of a dynamic variable finds only what is GLOBAL's — a GLOBAL:: write or a top-level our — not a top-level my.

dynamic-var-caller-chainRaku++ passesRakudo does not pass2026-08-25 · 6879a71b
  1. 1

    A routine's own my $*X beats its caller's $*X.

  2. 2

    A dynamic variable resolves through the caller chain, innermost caller first, before scopes the callee merely closes over; a closure resolves through its callers, not its birth frame.

  3. 3

    Assigning to a dynamic variable in a callee writes the caller's variable, through any number of call levels and through EVAL.

    a callee's $*E++ changes the calling sub's $*E

More from this test: Modules (1), Everything else (1).

dynamic-var-memoRaku++ passesRakudo passes2026-10-12 · 84af1cd0 · #156
  1. 2

    A my $*X declared later in a caller's frame hides the outer $*X from the start of that frame.

  2. 3

    A called block (a pointy block, a closure) finds dynamic variables through its callers, not through the frame it was written in.

  3. 4

    $*X := $y aliases the dynamic variable to $y.

dynamic-var-not-foundRaku++ passesRakudo passes2026-09-21 · b9a76b93
  1. 1

    Reading an undeclared dynamic variable answers an armed Failure for X::Dynamic::NotFound: .defined, if, //, with and so stay quiet, and only using the value throws.

    $*OS is not a silent Any

  2. 2

    Assigning to an undeclared dynamic variable throws X::Dynamic::NotFound outright, and so does temp $*x = 1.

    temp $*x = 1 throws when $*x is not declared

More from this test: divergences (1).

ecosweep-2026-09Raku++ passesRakudo passes2026-09-05 · ebe0953e
  1. 1

    The key of a pseudo-package lookup may be computed (MY::{$n}) or interpolated (MY::<<$n>>).

  2. 2

    A chained pseudo-package such as OUTER::MY:: names a scope further out.

More from this test: I/O & processes (2), Modules (3), Classes, roles & the MOP (1), Operators (1), Signatures & dispatch (1), Types & coercion (1).

ecosweep-batch-fiveRaku++ passesRakudo passes2026-08-25 · 6879a71b
  1. 6

    ::<name>:exists tests whether a symbol exists, and :!exists negates.

    ::<$probe-var>:exists is True for a declared $probe-var; ::<$no-such-var>:exists is False

  2. 8

    CORE:: qualifies a built-in type name.

    class ShadowEx is CORE::Exception { … } inherits from Exception

More from this test: Hashes & sets (1), Native types & NativeCall (2), Classes, roles & the MOP (2), Operators (1), Regexes & grammars (1), Signatures & dispatch (4), Syntax & parsing (1), Types & coercion (2).

end-phaser-in-subRaku++ passesRakudo passes2026-09-07 · f2f59618 · #70
  1. 1

    An END phaser written inside a sub runs at program end, not when the statement is reached during a call.

    sub temp-dir { $dir.mkdir; END rm-rf($dir); $dir } removes the directory only at exit

  2. 2

    An END phaser is registered at compile time and runs exactly once: one in a sub that is never called still runs, and one in a sub called several times runs once, in the scope of the last entry into its block.

  3. 3

    END phasers run at exit in reverse source order, wherever they are written.

exe-bare-block-outer-topicRaku++ passesRakudo passes2026-11-11 · cfecb5a6
  1. 2

    A bare block called with no argument sees the outer $_, as its signature $_ is raw = OUTER::<$_> says, while a sub { } has a fresh $_ of its own.

    in $d.watch.tap: { $lock.protect: { %seen{.path.IO.basename}++ } } the inner block's .path reads the tap block's topic

exe-do-try-block-scopeRaku++ passesRakudo passes2026-11-07 · 37935a34
  1. 2

    A my inside a do { … } block declares a variable of that block and leaves an outer variable of the same name alone.

    my $j = 7; my $r = do { my $j = 100; $j }; say $j prints 7

exe-dynamic-global-fallbackRaku++ passesRakudo passes2026-11-11 · 4c0019b4
  1. 2

    A read of a dynamic variable $*X that no caller declares answers $GLOBAL::X, the twigil dropped, and a Failure when nothing has it.

  2. 3

    A write to a dynamic variable $*X that no caller declares reaches the top-level our $X, and throws X::Dynamic::NotFound when there is none.

exe-for-topic-parameter-nativeRaku++ passesRakudo passes2026-11-18 · f6a2ecb6
  1. 1

    A for block with two or more parameters, one of them named $_, makes that parameter the topic.

    for 1, 2, 3, 4 -> $_, $n { say .succ } prints 2 and 4

exe-leave-armed-firstRaku++ passesRakudo passes2026-11-11 · 44cc93a9
  1. 2

    A LEAVE phaser runs however its scope is left, including by an error in a statement written before the LEAVE.

    my $r = R.new; LEAVE $r.close with a dying new runs the LEAVE on the undefined $r, and its "No such method 'close'" follows the first error

    Also held by exe-leave-unwinding, leave-reads-block-locals.

exe-lexical-sub-topicRaku++ passesRakudo passes2026-11-11 · a44485d6
  1. 2

    A sub declared inside a block has a $_ of its own, as every routine does, and does not see the $_ around it.

    for 1, 2 -> $x { sub in-loop { $_ // 'U' }; in-loop() } with the mainline's $_ set to 'outer' answers 'U'

exe-mechanical-nativeRaku++ passesRakudo passes2026-11-20 · ef8f4453
  1. 7

    A pointy block's parameter named $_ is the topic inside the block.

    -> Rat $_ { $_ * 2 } reads its parameter, not the outer topic

More from this test: Containers & assignment (1), Exceptions & control flow (2), Classes, roles & the MOP (1), Signatures & dispatch (3).

exe-nested-sub-captureRaku++ passesRakudo passes2026-09-06 · 701765e8
  1. 2

    A lexical sub is installed at block entry, so it can be called above its own declaration line.

exe-process-scoped-storeRaku++ passesRakudo passes2026-11-11 · a98abc3c
  1. 1

    PROCESS::<$X> = v installs the process-wide dynamic variable $*X.

exe-routine-scope-shapesRaku++ passesRakudo passes2026-11-11 · 539110b8
  1. 3

    An our variable declared inside a sub is its package's variable and keeps its value from call to call.

    a module sub's our $v; $v++ counts up across calls

More from this test: Modules (1), Classes, roles & the MOP (1), Signatures & dispatch (1).

exe-routine-self-referenceRaku++ passesRakudo passes2026-10-03 · 1e535cb8
  1. 2

    A plain block inside a sub is not a routine: &?ROUTINE there is the sub around it.

exit-runs-no-leaveRaku++ passesRakudo passes2026-11-08 · 50f0b0bd
  1. 1

    exit runs the END phasers and ends without unwinding, so no LEAVE phaser runs.

    for ^2 -> $i { LEAVE { say "leave$i" }; exit 0 if $i == 0 } does not print leave0

  2. 2

    A LEAVE runs when its block is left by a die, a return or a last, and a LEAVE of a routine that an END calls runs too.

failure-can-is-failures-ownRaku++ passesRakudo passes2026-10-31 · ad7f05dc · #77
  1. 2

    Reading a dynamic variable that is not declared yields a Failure.

More from this test: Classes, roles & the MOP (1).

first-init-written-last-valueRaku++ passesRakudo passes2026-11-08 · 8e5b2dc0
  1. 1

    A FIRST or INIT phaser written last gives the block or routine its value: the value of the one run, answered on every pass.

    (1, 2, 3).map({ $_; FIRST { 7 } }) is (7 7 7) and sub g { 1; INIT { 5 } } answers 5

  2. 2

    A FIRST phaser that runs before an ENTER phaser does so in a block .map calls too. inferred

first-phaser-once-per-cloneRaku++ passesRakudo passes2026-10-10 · e1663c0c
  1. 1

    A closure that is called rather than looped runs its FIRST phaser on its first call only, once per closure clone, also when it is called from inside a loop.

    my &b = { FIRST … }; b() for 1..3 runs FIRST once

  2. 2

    A block run in place is a fresh clone each time it runs, so its FIRST runs every time.

gather-coroutine-lazinessRaku++ passesRakudo passes2026-09-27 · 0d048722
  1. 3

    A gather dropped while its block is suspended is unwound quietly, without its LEAVE phasers producing anything.

More from this test: Lists & laziness (2).

gather-late-blockRaku++ passesRakudo passes2026-09-27 · 0d048722
  1. 3

    A placeholder variable in a for block inside a gather belongs to the for block, not to the gather's block.

    gather { for <a b> { take $^v } } takes a and b

More from this test: Lists & laziness (1), Signatures & dispatch (1).

generic-role-bodiesRaku++ passesRakudo does not pass2026-09-28 · b47d945a
  1. 8

    my $x = BEGIN … in a role body runs once, at the role's declaration.

More from this test: Classes, roles & the MOP (5), Syntax & parsing (2).

global-package-slotRaku++ passesRakudo passes2026-09-11 · 680d42e1
  1. 1

    %GLOBAL::NAME is a slot in the root package's symbol table: it reads as empty when nobody has filled it and is created on write, with no declaration needed.

    %GLOBAL::RED-DEFAULT-DRIVERS can be read before anything declares or writes it

  2. 2

    A file-scope our $x lives in the root package and is reachable as $GLOBAL::x.

grand-review-c1-interpRaku++ passesRakudo passes2026-09-06 · fa74f74f
  1. 2

    A die or exit inside a LEAVE, KEEP or UNDO phaser takes effect instead of being swallowed.

  2. 3

    A matched when in a loop body still runs the loop's NEXT and LAST phasers and contributes the iteration's value.

  3. 4

    KEEP and UNDO are chosen by the block's value: KEEP runs on a defined result, UNDO on Nil or an undefined result.

  4. 16

    A symbolic lookup of an undeclared name, ::('$nope'), carries a typed X::NoSuchSymbol exception.

More from this test: Containers & assignment (1), Exceptions & control flow (3), I/O & processes (1), Numerics (7), Operators (4), Signatures & dispatch (3), Stringification (1), Strings & Unicode (1).

grand-review-c4b-modules-seqRaku++ passesRakudo passes2026-09-06 · fa74f74f
  1. 5

    CALLER::<$x> reads the caller's dynamic variable, not the callee's own variable of that name.

More from this test: Lists & laziness (1), Modules (2).

init-in-routine-runs-onceRaku++ passesRakudo passes2026-11-08 · a5cb94fa
  1. 1

    An INIT in a routine runs once, at program start, before the mainline's initializers run.

    my $n = 0; sub g { INIT { $n++ }; 1 }; g(); g(); say $n says 0

is-cached-needs-experimentalRaku++ passesRakudo passes2026-11-14 · 2fe0aeeb
  1. 2

    The use experimental :cached pragma is lexical.

More from this test: Compile-time errors (1).

is-dynamic-and-sumRaku++ passesRakudo passes2026-07-27 · 8c65c04a
  1. 1

    A variable declared is dynamic reports True from .dynamic and .VAR.dynamic, in the assigned form (my $x is dynamic = 3) and the bare form, in a block or in the mainline.

  2. 2

    An inner plain my $x shadows an outer is dynamic variable of the same name, and is not itself dynamic.

issue-171-constant-before-phasersRaku++ passesRakudo passes2026-10-14 · 8fe8d493 · #171
  1. 1

    A top-level constant is bound at compile time, so BEGIN, CHECK and INIT phasers, and subs they call, see its value.

    constant K = 4; INIT say K does not say (Any)

issue-202-stash-our-variable-lookupRaku++ passesRakudo passes2026-10-27 · 5d31d4a2 · #202
  1. 1

    A package's Stash holds its our variables' containers, so Pkg::{'$x'}, a computed key, .AT-KEY, .pairs and a Stash held in a variable read the variable's value and a write through them reaches the variable.

    Circle::{'$pi'} reads 3.14, as $Circle::pi and Circle::<$pi> do

More from this test: Modules (1).

js-backend-framework-clusterRaku++ passesRakudo passes2026-09-13 · 862e3888
  1. 6

    A &-sigilled parameter is nearer than a sub of the same name, so the routine body sees the argument and not the outer sub. inferred

    in sub page($p, &body), &body is the argument even when a sub body exists

  2. 8

    Every closure made in a for loop keeps its own loop variable for that iteration. inferred

More from this test: Operators (1), Signatures & dispatch (1), Strings & Unicode (1), Syntax & parsing (2), Types & coercion (1).

js-pick-and-dynamic-failureRaku++ passesRakudo passes2026-10-18 · 36098d73
  1. 2

    Reading an undeclared dynamic variable $*var gives a Failure. inferred

kernel-closure-calleesRaku++ passesRakudo passes2026-10-21 · cce315ef
  1. 1

    Each closure of one routine body calls the lexical routines its own scope holds, so wrapping one closure's my sub g affects only that closure.

    sub make { my sub g(Int $n --> Int) { $n + 1 }; (sub (Int $x --> Int) { g($x) + g($x) }, &g) }; my ($a, $ag) = make; my ($b, $bg) = make; $a(5); $bg.wrap(-> $n { 1000 }); say $b(5) prints 2000

More from this test: Numerics (1).

leave-after-early-returnRaku++ passesRakudo passes2026-09-06 · 6581f2b5
  1. 1

    A LEAVE, KEEP or UNDO phaser may name a variable whose my declaration an early return skipped; the variable exists from block entry and is undefined.

leave-on-every-exit-nativeRaku++ passesRakudo passes2026-10-27 · fc262224 · #195
  1. 1

    A LEAVE phaser runs however its block is left: by next, last, redo, return or an exception.

    for ^3 -> $i { LEAVE { … }; next if $i == 1; … } runs the LEAVE three times

leave-reads-block-localsRaku++ passesRakudo passes2026-11-11 · a98abc3c
  1. 2

    A LEAVE phaser that reads a variable its block declares sees what the variable holds at the moment the block is left.

let-undone-when-leave-diesRaku++ passesRakudo passes2026-11-08 · 2a32bb59
  1. 1

    A let is undone when its routine or method is left by an exception, even when a LEAVE phaser dies during the unwinding; a routine that returns normally keeps the let.

    sub f { let $x = 5; LEAVE die "L"; die "first" } restores $x

loop-header-my-shadowsRaku++ passesRakudo passes2026-09-19 · 1393503d
  1. 1

    A my declared in a loop header is scoped to the block enclosing the loop.

    after loop (my $k = 0; …) { … }, $k is readable

    Also held by unboxed-loop-lanes.

  2. 2

    Two nested loops whose headers declare the same name declare two variables, the inner shadowing the outer only inside the outer loop's body.

    my $t = 0; loop (my $i = 0; $i < 3; $i++) { loop (my $i = 0; $i < 3; $i++) { $t = $t + 1 } }; say $t prints 9

loop-state-frame-scanRaku++ passesRakudo passes2026-08-07 · a892cfb5
  1. 2

    The per-loop-execution reset of state also holds when the declaration sits under an if, a bare block, a nested loop or a ternary inside the loop body.

modifier-my-declaresRaku++ passesRakudo passes2026-07-30 · b6354350
  1. 2

    A my assigned in a statement run by a while modifier keeps its last value in the enclosing scope after the loop.

modinfo-ecosystem-clusterRaku++ passesRakudo passes2026-08-02 · 2d99420e
  1. 9

    A bare proto or multi in a class body declares a sub, callable from the class's methods.

    proto pick-one(|) { * } plus multi sub pick-one(Str:D $s) in a class body are called as pick-one('x')

  2. 14

    A nested type is nameable by a partial qualified path from inside its enclosing class.

    inside class Outer { class Inner { class Leaf {…} } }, a method of Outer can write Inner::Leaf.new

More from this test: Hashes & sets (1), I/O & processes (1), Lists & laziness (1), Operators (1), Regexes & grammars (3), Signatures & dispatch (3), Syntax & parsing (7), Types & coercion (1).

module-compat-clusterRaku++ passesRakudo passes2026-08-09 · 74aac52a
  1. 2

    OUR::{'&name'} := … binds into the package namespace.

  2. 9

    An unbound dynamic variable reads as undefined, so // falls back to its right side.

  3. 10

    A my @*dyn is visible, and empty, inside its own initializer.

More from this test: I/O & processes (1), Classes, roles & the MOP (4), Operators (1), Signatures & dispatch (2).

my-class-shadowRaku++ passesRakudo passes2026-11-19 · da196f88
  1. 1

    A my class declared in a routine or block shadows a type of the same name only within that scope.

    after sub f { my class P { … } } has run, P again names the program's own class P

    Also held by shadow-scope.

  2. 2

    An object of a scope's my class keeps its class after the scope has left, and a my role is scoped the same way.

my-in-short-circuit-and-do-initRaku++ passesRakudo passes2026-11-11 · 71451a61 · #248 · #249
  1. 1

    A my is a compile-time declaration: a variable declared in the right operand of a short-circuiting ||, &&, //, or, and, andthen or orelse exists even when that operand never runs.

    after True || (my $b := 5), $b := 9 works

  2. 2

    A do block that initializes a my declaration may name the variable being declared, inside a sub as at file scope.

    my $c := do { $c := 2 } in a sub body compiles and runs

my-stash-sees-test-importsRaku++ passesRakudo passes2026-10-19 · 9550aecc
  1. 2

    OUTER::<&g>:exists honours its adverb and answers a Bool, not the looked-up value.

More from this test: Modules (1).

named-sub-term-declares-nameRaku++ passesRakudo passes2026-10-18 · 7d824d2b
  1. 1

    A named sub used as a value declares its name in the enclosing scope, so it can be called by that name, also recursively from inside the term.

    my &up = sub k(Int $c) {…}; say k(49) calls it

More from this test: Compile-time errors (1), Classes, roles & the MOP (1).

nested-sub-keeps-its-closureRaku++ passesRakudo passes2026-09-15 · e1b41314
  1. 1

    A nested my sub reached through a closure that outlives the frame it was declared in still sees its enclosing lexicals.

next-in-first-phaserRaku++ passesRakudo passes2026-10-02 · 99f09017 · #106
  1. 1

    next inside a loop's FIRST phaser ends the first iteration, and NEXT and LAST still run.

no-strict-exeRaku++ passesRakudo passes2026-08-27 · 3a9771c4
  1. 2

    Under no strict an auto-vivified variable lives in the enclosing package or unit scope, not in the block that first writes it.

    no strict; for 1..5 -> $k { $sum += $k }; say $sum says 15

no-strict-lexicalRaku++ passesRakudo cannot run it2026-08-27 · 3a9771c4
  1. 1

    no strict is lexical: it holds from its statement to the end of the enclosing block and nowhere else.

    { no strict; $a = 5 }; $b = 7 fails with "Variable '$b' is not declared"

nqp-scope-and-listRaku++ passesRakudo passes2026-07-23 · 87342334
  1. 2

    A my declared inside one branch of a ternary expression is visible in the sibling branch, because the declaration belongs to the enclosing block.

    Also held by hoist-expr-decls-cache.

More from this test: Types & coercion (1).

open-modes-bind-end-shiftRaku++ passesRakudo cannot run it2026-07-30 · bbf7c862
  1. 3

    A used module's END phaser runs at process end, before the mainline's own END blocks, not when the module loads.

More from this test: Containers & assignment (1), I/O & processes (1), Syntax & parsing (1).

order-enum-term-cacheRaku++ passesRakudo passes2026-10-20 · b35718ba
  1. 1

    A bare Less (or any core enum member name) means whatever a my \Less, a parameter, a lexical constant or a user enum in scope declares, and the core Order::Less only when nothing shadows it.

our-belongs-to-its-packageRaku++ passesRakudo passes2026-10-21 · 8174a3c3
  1. 1

    An our variable declared in a routine belongs to the package lexically around the routine, wherever the call comes from.

    a method's our $k inside class C is C's $k, not GLOBAL's

  2. 2

    A typed or defaulted our variable keeps its type, value and default however often its declaration runs.

    a re-run our Int $x still refuses a Str

More from this test: Compile-time errors (1).

our-is-one-containerRaku++ passesRakudo passes2026-10-21 · 432a3398
  1. 1

    our $x names the package's one container however often the declaration runs, so re-running it in a loop, a sub or a .map block keeps the variable's value and $Pkg::x sees every write.

    for ^400_000 { our $n += 1 } accumulates in one $n rather than counting to 1

  2. 2

    $x := 5 on an our variable rebinds only the lexical name, not the package's variable.

our-on-worker-threadsRaku++ passesRakudo passes2026-10-21 · 6ba94541
  1. 2

    An our variable's stash entry is installed at compile time, so it exists in its package before the declaration has run.

    GLOBAL::<$x>:exists is True before a nested our $x has run

    Also held by stash-exists-answers.

our-qualified-name-is-absoluteRaku++ passesRakudo passes2026-09-10 · 5c7bc727
  1. 1

    An our declaration written with a qualified name is absolute: it declares exactly that name, whatever package it is written in.

    our $Foo::v inside class Foo declares $Foo::v, and our $Bar::v there declares $Bar::v

  2. 2

    An unqualified our $v inside a package declares $Pkg::v.

More from this test: divergences (1).

our-var-in-package-blockRaku++ passesRakudo passes2026-09-10 · f2e1439e · #76
  1. 1

    An our $v declared in a module or package block is one container, so $Pkg::v = 4 written outside changes the variable the package's own code reads.

  2. 2

    A bare our $v; with no initialiser is the same single container as its qualified name $Pkg::v.

our-var-subscript-writes-throughRaku++ passesRakudo passes2026-09-10 · f2e1439e
  1. 1

    A subscript assignment through the qualified name of an our @a or our %h writes the package's own container.

    %Cfg::OPT<width> = 120 is seen by the module that declared our %OPT

package-constant-qualifiedRaku++ passesRakudo passes2026-08-15 · 73021fcb
  1. 1

    A constant declared in a package is reachable by its qualified name from outside it.

    constant Lib = Base64::Native::BASE64-LIB; resolves

package-stash-symbolsRaku++ passesRakudo passes2026-09-19 · 292af2e9
  1. 1

    A package's stash and its qualified globals are one symbol table: our sub foo inside class A is &A::foo, A::<&foo> and A.WHO<&foo>, with the sigil carried on the stash key.

    A.WHO<&foo> is the our sub foo declared in class A

  2. 2

    Assigning through a stash subscript, A::<$bar> = 99, writes the same variable the class's own our $bar reads.

pdf-family-2026-09Raku++ passesRakudo passes2026-09-14 · a3586267
  1. 45

    temp in a method body is undone when the method returns.

  2. 47

    A subset outranks the package-relative short name of a nested class with the same name.

  3. 53

    INIT takes a whole statement as its operand, as do does.

  4. 56

    A where clause is evaluated in the scope its signature was written in.

More from this test: Containers & assignment (8), Exceptions & control flow (1), I/O & processes (1), Lists & laziness (1), Modules (1), Numerics (1), Classes, roles & the MOP (14), Operators (1), Regexes & grammars (3), Signatures & dispatch (9), Syntax & parsing (11), Types & coercion (3).

phaser-block-takes-statement-modifierRaku++ passesRakudo passes2026-11-13 · b1040540 · rakudo#2243
  1. 1

    A block phaser followed by a statement modifier parses: the phaser is a declaration and is installed whatever the condition says, the condition still runs, and the statement's value is Nil.

    LEAVE { say 42 } if False; parses

More from this test: divergences (1).

phaser-written-last-is-nilRaku++ passesRakudo passes2026-11-08 · 592afa33
  1. 1

    A phaser with no value of its own written last (LEAVE, KEEP, UNDO, PRE, POST, NEXT, LAST, CLOSE, TEMP, QUIT, CATCH, CONTROL) is the last statement of its sub, method, block or do, whose value is then Nil.

    sub f { 42; LEAVE { } } answers Nil

  2. 2

    An ENTER phaser written last gives the block its own value.

    Also held by first-init-written-last-value.

pred-answer-regex-and-modifier-tempRaku++ passesRakudo passes2026-08-27 · 23cd3de6
  1. 2

    temp $x = … if COND; belongs to the enclosing block and is restored at that block's exit, not when the modified statement finishes.

    temp $colorizor = sub { '' } unless $color stays in effect for the rest of the block

More from this test: Regexes & grammars (1).

process-scope-and-sigilless-whileRaku++ passesRakudo passes2026-08-04 · e89a2d46
  1. 1

    PROCESS::<$x> = … installs into the PROCESS scope from whatever frame runs it, making $*x visible everywhere.

    sub setter() { PROCESS::<$RX-FROM-SUB> = 5 }; setter(); $*RX-FROM-SUB is 5

More from this test: Everything else (1), Syntax & parsing (1), divergences (1).

process-stash-computed-keyRaku++ passesRakudo passes2026-08-05 · 96b8030c
  1. 1

    A pseudo-package stash accepts a computed key in braces, reading the same variable as the angle form.

    PROCESS::{"\$$name"} with $name = 'OUT' reads what PROCESS::<$OUT> reads

More from this test: Containers & assignment (1).

pseudo-package-adverbsRaku++ passesRakudo passes2026-09-08 · f05584ba
  1. 1

    The subscript adverbs :exists and :p work on a pseudo-package stash lookup, in any expression position.

    UNIT::{"&$_"}:exists

  2. 2

    UNIT:: looks symbols up in the compilation unit's scope, even when asked from inside a routine such as a module's EXPORT sub.

pseudo-package-stash-valueRaku++ passesRakudo passes2026-09-11 · 6d82fac4
  1. 1

    A bare pseudo-package term such as MY:: or UNIT:: is the scope's symbol table, and enumerating it yields the scope's symbols.

    UNIT::.grep: { .key.starts-with('&') && .key ne '&EXPORT' } finds the unit's subs

qualified-sigil-missRaku++ passesRakudo passes2026-11-25 · 79314f20 · #274
  1. 1

    A package-qualified %Foo::BAR or @Foo::BAR that names no symbol reads as Any, as $Foo::BAR does.

    with %Foo::BAR does not enter its block, and %OUR::BAR is Any rather than X::Undeclared

    Also held by qualified-miss.

  2. 2

    A write to a package-qualified name that names no symbol installs the symbol.

    %Foo::BAR<k> = 7

  3. 3

    Writing through OUR:: inside a package to a name it never declared creates the package variable.

    a write through OUR:: in package P creates @P::B, and a my @B in scope is not it

    Also held by our-write.

quanthash-exact-sethash-zen-dynamicRaku++ passesRakudo passes2026-07-27 · 21328719
  1. 4

    $s.dynamic on a scalar decontainerizes and asks the held value (False for a Hash or Array), $s.VAR.dynamic asks the Scalar itself, and for @/% variables the variable's name decides.

More from this test: Hashes & sets (3).

rakudo-t-language-gaps-1Raku++ passesRakudo passes2026-10-05 · 892e6c61
  1. 5

    $<p>:exists asks the Match, SETTING::{…}:exists asks the core, and CORE::<Int> is the type.

  2. 13

    Two will traits on one variable both run.

More from this test: Compile-time errors (1), Containers & assignment (1), Lists & laziness (1), Classes, roles & the MOP (2), Operators (1), Everything else (1), Regexes & grammars (2), Signatures & dispatch (1), Stringification (2), Strings & Unicode (1), Syntax & parsing (1).

rakudo-t-language-gaps-2Raku++ passesRakudo passes2026-10-05 · e209ae16
  1. 14

    $*PACKAGE in a role body, and in a package's own trait, is the package being declared. inferred

More from this test: Compile-time errors (1), Exceptions & control flow (2), Hashes & sets (1), Lists & laziness (2), Operators (2), Regexes & grammars (4), Signatures & dispatch (1), Syntax & parsing (1).

rakudo-t-language-gaps-3Raku++ passesRakudo passes2026-10-05 · be813251
  1. 1

    GLOBAL::<$x>:exists and GLOBAL::<Sym> = … read and write the GLOBAL stash, $p:: is the stash of the package a value names, and Pkg::{'&f'} looks a routine up in a package. inferred

More from this test: Compile-time errors (2), Containers & assignment (1), Lists & laziness (2), Modules (1), Classes, roles & the MOP (1), Operators (2), Regexes & grammars (1), Signatures & dispatch (1), Stringification (1), Syntax & parsing (1).

rakudo-t-language-gaps-4Raku++ passesRakudo passes2026-10-05 · c5326843
  1. 5

    A user role Numeric { } shadows the core role for ~~.

More from this test: Compile-time errors (1), Classes, roles & the MOP (3), Operators (2), Regexes & grammars (1), Stringification (1).

rakudo-t-language-gaps-7Raku++ passesRakudo passes2026-10-05 · e9cf7c7b
  1. 1

    A value-answering phaser takes a regex term: BEGIN / … /.

More from this test: Regexes & grammars (2), Signatures & dispatch (2), Types & coercion (2).

rakuglaze-round-4Raku++ passesRakudo passes2026-10-03 · 99895bb5
  1. 3

    KEEP runs only when the block's result is defined, in a method as in a sub. inferred

More from this test: Exceptions & control flow (4), Hashes & sets (2), Lists & laziness (1), Classes, roles & the MOP (1), Operators (1), Signatures & dispatch (1), Types & coercion (2).

rakuglaze-round-5Raku++ passesRakudo passes2026-10-03 · 60477ffd
  1. 3

    An INIT in a parameter default runs once, at program start, inside an EVAL too.

More from this test: Concurrency (1), Containers & assignment (1), Lists & laziness (1), Types & coercion (1).

rakuglaze-round-6Raku++ passesRakudo passes2026-10-09 · 8902cac9 · #169
  1. 11

    An our sub declared in a class body is installed in that class's package, not in the enclosing module's.

    with our sub f in classes A and B of module M, M::A::f and M::B::f are two subs and M::f is none

    Also held by issue-169-class-our-sub-in-module.

More from this test: Concurrency (1), Exceptions & control flow (1), Hashes & sets (2), I/O & processes (1), Lists & laziness (2), Classes, roles & the MOP (1), Regexes & grammars (1), Syntax & parsing (2).

regex-as-callable-param-and-loop-phasersRaku++ passesRakudo does not pass2026-09-11 · 6d82fac4
  1. 2

    A Callable answers .has-loop-phasers and .callable_for_phaser('FIRST'), giving access to its FIRST, NEXT and LAST phasers.

More from this test: Signatures & dispatch (1).

return-through-block-undoRaku++ passesRakudo passes2026-10-28 · 09018c67 · #77
  1. 1

    A return passing through a block or routine it does not belong to is an unsuccessful exit for it: its UNDO runs, not its KEEP, and its lets are undone, while KEEP runs only in the routine the return leaves.

    sub wrap(&b) { KEEP …; UNDO …; b() }; wrap { return 42 } runs wrap's UNDO

return-type-package-scopeRaku++ passesRakudo passes2026-09-16 · b22d82fc
  1. 1

    A bare type name after --> resolves lexically, innermost first, so the enclosing package's own class wins over an imported type with the same short name.

    in unit class CSV::Table with its own class Line, --> Line means CSV::Table::Line even when an imported Line exists

roast-3log-batch2Raku++ passesRakudo passes2026-09-28 · bda6f720
  1. 2

    Assigning to $CALLER::_ writes the caller's topic, not the routine's own.

More from this test: Exceptions & control flow (1), Modules (1), Numerics (1), Classes, roles & the MOP (6), Everything else (1), Regexes & grammars (5), Syntax & parsing (1).

roast-last-filesRaku++ passesRakudo passes2026-09-28 · 6e9ef4cc
  1. 6

    OUTER:: is exactly one scope, not that scope and those outside it, and a my declared further down that scope already counts. inferred

  2. 7

    Inside an EVAL of 6.c or 6.d code, SETTING:: is the calling code; elsewhere it holds no program variable. inferred

More from this test: Compile-time errors (1), Containers & assignment (2), Lists & laziness (2), Numerics (3), Classes, roles & the MOP (1), Operators (1).

roast-sweep-runtimeRaku++ passesRakudo cannot run it2026-09-28 · 2cc896bd
  1. 1

    A sub declared in a package with no scope declarator stays out of the package's stash, and so does a my constant. inferred

  2. 3

    A LAST phaser runs when a map block leaves with last. inferred

  3. 4

    A last in a loop body's LEAVE phaser ends the loop. inferred

  4. 5

    A POST phaser reads the block's return value. inferred

  5. 17

    constant True declared in a block shadows the literal True in that block only. inferred

  6. 18

    An our declaration with no initializer names the same package variable an earlier our published, keeping its value. inferred

  7. 19

    BEGIN and CHECK phasers keep their order whether written as statements or as will begin / will check traits. inferred

  8. 20

    A return inside a CHECK phaser is an error, having no routine to leave. inferred

  9. 22

    with $x binds the topic to $x's own container, and with @a binds it to the Array. inferred

  10. 36

    $?PACKAGE inside a lexical my package is that package. inferred

  11. 37

    A pseudo-stash lookup sees a my declared further down the same block: the name exists, is undefined, and shadows the outer one. inferred

  12. 41

    An INIT term inside a sub runs once, at program start, and each call reads its value. inferred

  13. 53

    A class nested in a package answers to its short name inside that package only. inferred

  14. 54

    A BEGIN above the line on which an EVAL fails to compile has already run by the time it fails. inferred

More from this test: Compile-time errors (4), Concurrency (2), Containers & assignment (2), Exceptions & control flow (2), Hashes & sets (4), I/O & processes (3), Lists & laziness (5), Modules (2), Classes, roles & the MOP (8), Operators (4), Everything else (1), Regexes & grammars (1), Stringification (1), Strings & Unicode (1), Types & coercion (3).

role-state-and-nested-assignRaku++ passesRakudo passes2026-08-14 · e3994d54
  1. 1

    A state variable in a role method is separate for each class that composes the role.

More from this test: Classes, roles & the MOP (1), Types & coercion (1).

routine-has-its-own-topicRaku++ passesRakudo passes2026-10-16 · ef35899d
  1. 1

    Every routine — a sub with or without a signature, and every method — has a $_ of its own: its $_ parameter, or a fresh undefined one.

    $_ = 'outer'; sub f($v) { $_ = 'f' }; f(1); say $_ says outer

  2. 2

    A pointy block has no $_ of its own and sees the outer $_.

routine-is-lexicalRaku++ passesRakudo passes2026-10-27 · 50aebf54
  1. 1

    &?ROUTINE in a block is the routine the block is written in, not the routine that runs the block, also after that routine has returned and from another thread.

    sub g { apply({ &?ROUTINE.name }) } answers g

More from this test: Regexes & grammars (1), Signatures & dispatch (1).

run-adverbs-keep-undo-rule-captureRaku++ passesRakudo passes2026-07-25 · 85e74a52
  1. 2

    KEEP fires only on a successful block exit, UNDO only on an unsuccessful one, and LEAVE always.

More from this test: I/O & processes (1), Modules (1), Regexes & grammars (1).

sigilless-name-shadows-termRaku++ passesRakudo passes2026-08-19 · e84d9c6a
  1. 1

    A sigilless name the program declares beats the built-in term of the same spelling.

    sub f(\i) { i } returns its argument, not the imaginary unit

smiley-var-checkedRaku++ passesRakudo cannot run it2026-11-03 · 0d9ea1ca
  1. 3

    my constant declares a lexical constant, not a package symbol. inferred

More from this test: Containers & assignment (1), Types & coercion (1).

stash-exists-answersRaku++ passesRakudo passes2026-10-21 · 77741ce6
  1. 1

    GLOBAL::<…>:exists, OUR::<…>:exists and Pkg::<…>:exists answer from the package's symbol table, which holds only our variables and routines, lax variables and qualified writes.

    an undeclared @x, %x or &x, a built-in &say and a top-level my @lex do not exist in GLOBAL

More from this test: Syntax & parsing (1).

stash-reads-and-lexical-routinesRaku++ passesRakudo passes2026-10-21 · 9288492c
  1. 1

    A plain sub f, a my sub f and a plain multi are lexical and not symbols of GLOBAL; only an our sub is in the package's stash.

    GLOBAL::<&f>:exists is False for a plain sub f

  2. 2

    GLOBAL::{'…'} with a string key reads GLOBAL's table as a Stash: a missing key is Any, not a Failure, and a lexical my of that name is not found.

    GLOBAL::{'@x'} for a missing symbol is Any

  3. 3

    Assigning to GLOBAL::{'$x'} for a symbol that does not exist creates the slot.

string-block-anonymous-stateRaku++ passesRakudo passes2026-11-13 · 7e5a643e · rakudo#1961
  1. 1

    An anonymous state variable $ in a string's { … } belongs to that block's closure, fresh each time the string is built, and each block in one string has its own.

    "count {$++}" for ^3 prints count 0 three times

  2. 2

    A closure that is called again keeps its anonymous state variable's value.

stub-completed-in-nested-blockRaku++ passesRakudo passes2026-09-11 · 6d82fac4
  1. 1

    A package declaration is our-scoped wherever it is written, so a file-scope stub our class Rak { ... } is completed by a class Rak { … } body inside a nested block.

supply-on-close-and-close-phaser-scopeRaku++ passesRakudo passes2026-10-30 · 2adfaa34
  1. 3

    A CLOSE phaser in a supply block sees the block body's lexicals, a my sub included, even when the body has not emitted yet.

More from this test: Concurrency (2).

symbolic-package-variable-missRaku++ passesRakudo passes2026-09-15 · e8c5dd0d
  1. 1

    A symbolic lookup of a package-qualified variable that nobody declared, $::('Pkg::name'), is X::NoSuchSymbol rather than an undefined Any, while a declared symbol reads as its value.

    $::('Names::xx::dow') for an undeclared name is X::NoSuchSymbol

temp-and-env-allomorphRaku++ passesRakudo passes2026-08-14 · 6964d5e4
  1. 1

    A temp container stays in effect across every iteration of a statement-modifier loop in the same scope and is restored only at the enclosing block's exit.

    temp %h; %h{$_} = 7 for <A B> writes both keys to the temporary hash and restores it after the block

More from this test: Types & coercion (2).

temp-restored-when-leave-diesRaku++ passesRakudo passes2026-11-09 · fbfa041a
  1. 1

    A temp or let in an enclosing block is restored even when an inner block's LEAVE phaser dies.

    my $x = 1; try { { temp $x = 2; { LEAVE { die "L" }; die "B" } } }; say $x says 1

todo-small-divergencesRaku++ passesRakudo passes2026-10-10 · 79f0bc7c
  1. 10

    anon subset and anon enum install no name in the scope.

  2. 16

    MY::<$x> finds the block's own lexical only, not one from an outer scope.

More from this test: Concurrency (1), Containers & assignment (2), Lists & laziness (3), Classes, roles & the MOP (2), Operators (1), Regexes & grammars (1), Stringification (3), Types & coercion (3).

todo-small-divergences-2026-10-11Raku++ passesRakudo does not pass2026-10-11 · fc6abf32
  1. 12

    A temp variable is restored before the block's LEAVE phasers run.

More from this test: Containers & assignment (1), Classes, roles & the MOP (2), Operators (2), Signatures & dispatch (2), Strings & Unicode (1), Syntax & parsing (3), Types & coercion (4), divergences (1).

top100-roots-2026-09-02Raku++ passesRakudo does not pass2026-09-02 · 7af75847
  1. 28

    An END phaser can start a worker and await it: END phasers run before worker threads are shut down.

More from this test: Containers & assignment (1), Exceptions & control flow (2), Lists & laziness (1), Modules (1), Native types & NativeCall (3), Numerics (1), Classes, roles & the MOP (4), Regexes & grammars (3), Stringification (1), Strings & Unicode (2), Syntax & parsing (3), Types & coercion (6).

topic-param-not-a-pad-slotRaku++ passesRakudo passes2026-10-01 · c17962a3
  1. 1

    A routine whose parameter is $_ still sees the loop's own topic inside a for, given or statement-modifier loop.

    in method !form-header(Frame $_), $_ inside for 16, 8 ... 0 { … } is the loop value

try-statement-is-a-block-frameRaku++ passesRakudo passes2026-11-13 · ecaee71c
  1. 3

    try my $x = … declares $x in the scope where the statement stands.

More from this test: Exceptions & control flow (2).

type-registryRaku++ passesRakudo passes2026-08-12 · 3e238862
  1. 1

    ::('NoSuchClass') returns a Failure: try ::($n) and .defined probe existence softly, and X::NoSuchSymbol is thrown when the result is used.

More from this test: Compile-time errors (1).

value-phasers-run-at-their-phaseRaku++ passesRakudo passes2026-11-12 · b980a365 · rakudo#4351
  1. 1

    A phaser in term position — BEGIN, CHECK, INIT, ENTER or FIRST, in block or expression form — is its value as computed at its phase, not where the expression stands.

    say "body"; my $x = INIT say "init" says init first, and say now - INIT now is not negative

  2. 2

    FIRST { … } in a loop runs on the first iteration only.

  3. 3

    An INIT phaser used as a parameter default runs once, not on every call.

whatever-sub-and-modifier-declRaku++ passesRakudo passes2026-07-24 · 0fc51ec6
  1. 2

    A my under a statement modifier declares its variable in the enclosing scope at compile time, even when the modifier never runs the statement.

    my @uri-candidates = ... if +@uris declares the array either way

    Also held by modifier-my-declares.

More from this test: Lists & laziness (1), Operators (1).

with-pointy-topicRaku++ passesRakudo passes2026-09-27 · 0d048722
  1. 1

    A with, given or without whose block is pointy binds the block's own parameter and leaves $_ alone.

    with 1 -> $a { .flip } flips the outer topic

  2. 2

    A plain else { } after a pointy with block gets the tested value as $_, and a pointy else -> $e { } does not set $_.

word-list-escapes-comma-op-forward-typeRaku++ passesRakudo passes2026-08-20 · 09e5fe68
  1. 3

    A class, grammar or role declared later in a file is usable by code that runs earlier, as a method invocant or as a value.

    G.parse($s, :actions(actions)) works with class actions declared further down

    Also held by forward-types-and-statement-end.

More from this test: Operators (1), Syntax & parsing (1).

zef-ecosystem-clusterRaku++ passesRakudo passes2026-07-25 · 0cefd08b
  1. 1

    $ = EXPR on the anonymous state variable assigns on every evaluation; only the slot persists.

More from this test: I/O & processes (2), Regexes & grammars (3), Types & coercion (1).