Last active
September 19, 2025 13:52
-
-
Save ab5tract/15cdd3d7d55b60ca652c2b0d926d2932 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'UNIT', sub ($cur) { | |
| my Mu $ctx := nqp::getattr(nqp::decont($cur), PseudoStash6c, '$!ctx'); | |
| nqp::say("Lookie here! "); | |
| nqp::say(nqp::isnull($ctx)); | |
| until nqp::isnull($ctx) || nqp::existskey(nqp::ctxlexpad($ctx), '!UNIT_MARKER') { | |
| nqp::say("going"); | |
| $ctx := nqp::ctxouter($ctx); | |
| } | |
| nqp::say(nqp::existskey(nqp::ctxlexpad($ctx), '!UNIT_MARKER')) unless nqp::isnull($ctx); | |
| nqp::isnull($ctx) | |
| ?? Nil | |
| !! PseudoStash.NEW-PACKAGE( :$ctx, :mode(STATIC_CHAIN), :name<UNIT> ) | |
| }, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment