Skip to content
New issue

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

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

Already on GitHub? # to your account

[basic.types.general] Refactor confusing phrase "object and value representation" #7262

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Quuxplusone
Copy link
Contributor

This came up in mailing-list review of D1839R6; @t3nsor rightly suggested I open an editorial issue for this.

There is no such thing as the "object and value representation" of a type; there is only the "object representation" and the "value representation." Refactor the confusing sentence accordingly. This seems to make one of the two new sentences potentially nonsensical, but no worse than it was when it was both grammatically confusing and potentially nonsensical.

I suggested that the first new sentence should be more like:

The object representation of a non-bit-field complete object of type cv T is the sequence of bytes of the object corresponding to the object representation of its type.

Still, AFAIK, until P1839 actually lands, there is no "object corresponding to the object representation..." at all. Right now, an object representation is a sequence of unsigned char objects, which (sequence) is not an object. P1839 is what will replace that sequence with a singular array object so that we can meaningfully talk about "the (array) object corresponding to the object representation [of an object]."

Worse, the second new sentence remains nonsensical to me: "The value representation of its type" is not an object at all, it's a set of bits. And if we mean "The value representation of a non-bit-field complete object of type T consists of the bits in the value representation of its type," well, that's just tautological, isn't it?

…esentation"

There is no such thing as the "object and value representation" of a type;
there is only the "object representation" and the "value representation."
Refactor the confusing sentence accordingly. This seems to make one of the
two new sentences potentially nonsensical, but no worse than it was when it
was both grammatically confusing *and* potentially nonsensical.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant