Skip to content

D184 amended: a script's top-level binding is a local of the implicit main; a helper captures it - #2979

Merged
ehartford merged 1 commit into
mainfrom
d184-amendment
Nov 2, 2026
Merged

ehartford merged 1 commit into
mainfrom
d184-amendment

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Docs-only. Eric's amendment of the D184 ruling (2026-11-02): script bindings are locals of the implicit main (views allowed, typed by uses in main up to the last top-level use), helpers capture them (observe or mutate, never consume; an ephemeral capture makes the helper non-escaping), helper locals shadow them (D173). Replaces the globals model that #2970 recorded; the WIP implementation on d184-script-globals is superseded. spec-inventory-check green; no battery.

… main; a helper that names it captures it

Eric's amendment of 2026-11-02 replaces the globals ruling after its
implementation exposed three consequences (a view at a script's top level,
a helper shadowing a script binding, by-use typing of script bindings):
one model instead of three rules. §29.15 and the record carry his words;
the implementation is NON-COMPLIANT until it catches up.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant