Skip to content

Fix missing 'object' in [dcl.init.general]/21 - #9347

Open
Jah-yee wants to merge 2 commits into
cplusplus:mainfrom
Jah-yee:fix/scalar-type-object
Open

Jah-yee wants to merge 2 commits into
cplusplus:mainfrom
Jah-yee:fix/scalar-type-object

Conversation

@Jah-yee

@Jah-yee Jah-yee commented Sep 22, 2026

Copy link
Copy Markdown

Fix: add missing 'object' in [dcl.init.general]/21

In section [dcl.init.general]/21 (link), the phrase 'Destroying a scalar type has no effect' was missing the word 'object', making it grammatically incomplete.

Before:

Destroying a scalar type has no effect other than ending the lifetime of the object

After:

Destroying a scalar type object has no effect other than ending the lifetime of the object

Fixes #9346

In section [dcl.init.general]/21, the phrase 'Destroying a scalar type
has no effect' was missing the word 'object', making it grammatically
incomplete. The sentence should read 'Destroying a scalar type object
has no effect other than ending the lifetime of the object'.

Issue: cplusplus#9346
Comment thread source/declarations.tex Outdated
\end{note}
Destroying an object of class type invokes the destructor of the class.
Destroying a scalar type has no effect other than
Destroying a scalar type object has no effect other than

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rephrase in the same way as the preceding sentence: "Destroying an object of scalar type..."

@jensmaurer jensmaurer added the changes requested Changes to the wording or approach have been requested and not yet applied. label Sep 22, 2026
Rephrase from 'a scalar type object' to 'an object of scalar type'
to match the structure of the preceding sentence:
'Destroying an object of class type invokes the destructor...'
Comment thread source/declarations.tex
Destroying an object of class type invokes the destructor of the class.
Destroying a scalar type has no effect other than
Destroying an object of scalar type has no effect other than
ending the lifetime of the object\iref{basic.life}.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jensmaurer, thanks for the review! My PR (commit 2dd3f2e) already changes the wording to match the preceding sentence: 'Destroying an object of scalar type has no effect other than ending the lifetime of the object.'

Please let me know if you'd like a different phrasing or if I should make any other adjustments. Happy to address any further feedback.

@jensmaurer jensmaurer removed the changes requested Changes to the wording or approach have been requested and not yet applied. label Sep 22, 2026
@Jah-yee

Jah-yee commented Sep 22, 2026

Copy link
Copy Markdown
Author

Hi @jensmaurer, I've now pushed a follow-up commit (9f01037) that rephrases to 'an object of scalar type' to match the preceding sentence pattern exactly. The PR now contains both fixes: the missing 'object' word and the corrected phrasing. Let me know if there's anything else needed!

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.

[dcl.init.general]/21 "Destroying a scalar type" typo

3 participants