Skip to content

Keep receiver directives scoped to remote captures - #16240

Merged
josevalim merged 1 commit into
elixir-lang:mainfrom
lukaszsamson:codex/remote-capture-directive-scope
Nov 28, 2026
Merged

josevalim merged 1 commit into
elixir-lang:mainfrom
lukaszsamson:codex/remote-capture-directive-scope

Conversation

@lukaszsamson

Copy link
Copy Markdown
Contributor

An optimized remote capture leaked directives from its receiver into the enclosing scope. Return the incoming environment E after resolving the receiver. E is the environment at the capture site, so returning it preserves the caller’s lexical scope and matches the branch that expands to an anonymous function. The receiver’s environment still governs dispatch inside the capture.

Assisted-by: Codex:GPT-6

@josevalim
josevalim merged commit 173a260 into elixir-lang:main Nov 28, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants