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

Strike mentions of undefined term "automatic object" #3490

Merged
merged 4 commits into from Mar 4, 2020

Conversation

sdkrystian
Copy link
Contributor

"Automatic object" is not a term defined by the standard. Replacing all mentions of it with "object with automatic storage duration" resolves the issue.

@jensmaurer jensmaurer modified the milestone: post-2019-11 Nov 19, 2019
@zygoloid zygoloid added the decision-required A decision of the editorial group (or the Project Editor) is required. label Nov 25, 2019
@zygoloid
Copy link
Member

This term is fairly widely used, and is shorter than the alternative; maybe we should just define it? [basic.stc.auto]p1:

Block-scope variables not explicitly declared static, thread_local, or extern have automatic storage duration; such objects are called automatic objects.

@sdkrystian
Copy link
Contributor Author

@zygoloid I feel that it's not used enough to warrant it. We already have a bunch of similar definitions like "local variable" and "local entity".

@jensmaurer
Copy link
Member

I'd like to point out that @zygoloid's suggested change equates variables with objects, which we want to move away from. (There is a separate automatic object for each invocation of a function containing a non-static, non-thread-local, non-extern variable declaration.)

@jensmaurer
Copy link
Member

Editorial meeting: use "with X storage duration", also cover static object.

Comment on lines 6558 to 6559
the copying of the object with automatic storage duration
\tcode{t}
Copy link
Member

Choose a reason for hiding this comment

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

This makes it sound like t is a name for the storage duration, not for the object.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@zygoloid Changing it to "the object t with automatic storage duration" would resolve this

@jensmaurer jensmaurer removed the decision-required A decision of the editorial group (or the Project Editor) is required. label Feb 10, 2020
@zygoloid zygoloid merged commit 6578410 into cplusplus:master Mar 4, 2020
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.

None yet

3 participants