-
Notifications
You must be signed in to change notification settings - Fork 89
16.4.10 Highlight differences with static constructors? #132
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
Comments
Agreed in principle. Someone should determine in what way the differ, if they do, and wordsmith a suitable §16.4.10; and add it to the list in §16.4.1 - I expect the latter is just an oversight; and make this a Proposal. |
The entirety of §16.4.10 is weird. It begins:
Should this not provide a link to §15.12? Ignoring that, the section then proceeds:
This sounds like it's providing an exhaustive list, but it's at minimum missing use of a static member; cribbing from §15.12:
I also don't understand why this bullet point was removed:
The static constructor appears to be executed before an instance member is referenced, at least in this example:
Program output with mono 4.3.2:
Removing the access to |
All comments prior to this one were before we removed section 7. I've updated the title only. |
Clause numbers in all comments above updated, it was getting confusing! |
What the semantics are here needs to be resolved, it shouldn't be punted again. I have a vague recollection that this was a discussion area for the CLI and it's semantics may have changed as a result – which I expect impacts the C# compilers, and in turn this Standard... Labelling appropriately |
Related: #125 |
That makes one wonder what rules it doesn't follow. I think we should elaborate.
Additionally:
The text was updated successfully, but these errors were encountered: