[Version 10.0] Feature support for record structs#1556
Conversation
| ; | ||
|
|
||
| record_struct_body | ||
| : struct_body ';'? |
There was a problem hiding this comment.
The optional trailing semicolon was not mentioned in the MS proposal; however, I discovered that VS 2026 18.2.1 allows it (just as we allow it for record classes). What was the intent here?
0120f1e to
951daf0
Compare
951daf0 to
e050360
Compare
e050360 to
078cdeb
Compare
078cdeb to
569310a
Compare
Remove unnecessary blank lines from classes.md
- Grammar allows `record` and `record class` - `with` expressions allowed in non-record struct types - a couple small merge issues where text was lost
9f994ae to
36f3bcf
Compare
|
An earlier version of this feature is already present on |
|
After researching and writing-up "Primary constructors" as a general feature in v12 for classes and structs outside of record variants, I have made a lot of tweaks to this spec (and to the V9 record class spec) to ease the transition to that v12 spec. |
…olutions: record class type qualifier on with-expr clone (§15.16.6.4), record/non-record struct copy-by-value, record_class_declaration 'record class' spelling, positional-param inherited-field clause
… A): structs.md:437 -> record-class primary ctor concept anchor; structs.md:256 parenthetical removed (no valid v10 target)
|
I attempted to rebase this PR onto the updated |
|
While rebuilding
These are preview-only resolutions and are not a substitute for the author's intended wording. Please finalize the correct cross-references/wording in this PR. Thanks! |
The original version of this PR has been modified based on Issue #1683.
This is Rex's adaptation of the corresponding MS proposal.