Skip to content

Spec v7.27: package-wide visibility (D100) - #2207

Merged
ehartford merged 1 commit into
mainfrom
d100-spec
Oct 6, 2026
Merged

ehartford merged 1 commit into
mainfrom
d100-spec

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Eric's ruling, 2026-10-05 (D100): a declaration without pub is visible throughout its package, pub means it leaves the package, and a module under an internal path segment is importable only from inside its parent's tree. Methods and fields follow the same rule. A file run outside any with.toml is its own package, and the standard library is one package. Supersedes §18.3's per-file privacy. Docs only. The implementation is NON-COMPLIANT until it catches up (#2186).

@ehartford

Copy link
Copy Markdown
Contributor Author

Docs-only: spec-inventory-check green.

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