Skip to content

[Version 10.0] Feature support for global using directives#1565

Draft
RexJaeschke wants to merge 5 commits into
draft-v10from
v10-global-using-directives
Draft

[Version 10.0] Feature support for global using directives#1565
RexJaeschke wants to merge 5 commits into
draft-v10from
v10-global-using-directives

Conversation

@RexJaeschke

@RexJaeschke RexJaeschke commented Feb 6, 2026

Copy link
Copy Markdown
Contributor

This is Rex's adaptation of the corresponding MS proposal.

@RexJaeschke RexJaeschke added this to the C# 10 milestone Feb 6, 2026
@RexJaeschke RexJaeschke added type: feature This issue describes a new feature Review: pending Proposal is available for review labels Feb 6, 2026
@RexJaeschke
RexJaeschke marked this pull request as draft February 6, 2026 21:18
@BillWagner
BillWagner force-pushed the v10-global-using-directives branch from ef9f014 to 29a956f Compare March 27, 2026 19:10
@BillWagner
BillWagner force-pushed the v10-global-using-directives branch from 29a956f to 952ae9b Compare April 14, 2026 18:45
@BillWagner
BillWagner force-pushed the v10-global-using-directives branch from 952ae9b to 864de1a Compare May 13, 2026 15:21
RexJaeschke and others added 5 commits June 24, 2026 15:19
- Add a `## §global-using-directives Global using directives` heading before `### §global-using-directives-general General`.
- Add after the `using_directive` paragraph: "The *global_using_directive*s of a compilation unit affect the *global_attributes* and *namespace_member_declaration*s of all compilation units in the program."
Update to: "The *extern_alias_directive*s of a compilation unit affect the *global_using_directive*s, *using_directive*s, *global_attributes* and *namespace_member_declaration*s of that compilation unit, but have no effect on other compilation units."
- Update to: "Using directives (§14.5) and global using directives (§global-using-directives) are provided to facilitate the use of namespaces."
@BillWagner
BillWagner force-pushed the v10-global-using-directives branch from 864de1a to e040081 Compare June 24, 2026 19:23
@BillWagner

Copy link
Copy Markdown
Member

An earlier version of this feature is already present on alpha-v10 from a prior meeting. Edits made to this PR since then are not yet on alpha-v10; they will land at the next propagation. If you need them on alpha-v10 sooner, please open a separate PR targeting alpha-v10.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Review: pending Proposal is available for review type: feature This issue describes a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants