Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for module initializers #992

Draft
wants to merge 4 commits into
base: draft-v9
Choose a base branch
from

Conversation

RexJaeschke
Copy link
Contributor

  1. Note that the requirements bullet list in the description of "The ModuleInitializer attribute" refers to the grammar rule parameter_list, which is defined by the V9 feature "Records."

  2. We say, "A module may have multiple initializers, which are called in an implementation-defined order." However, we do not say anything about their order w.r.t execution of static constructors. Should we? My (limited) testing showed that a static constructor in a type T executed before any module initializers in that type.

@RexJaeschke RexJaeschke added the type: feature This issue describes a new feature label Nov 14, 2023
@RexJaeschke RexJaeschke added this to the C# 9.0 milestone Nov 14, 2023
@RexJaeschke RexJaeschke marked this pull request as draft November 14, 2023 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature This issue describes a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant