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

"pointer to member" vs "pointer-to-member" #1369

Closed
jwakely opened this issue Jan 16, 2017 · 5 comments
Closed

"pointer to member" vs "pointer-to-member" #1369

jwakely opened this issue Jan 16, 2017 · 5 comments
Assignees
Milestone

Comments

@jwakely
Copy link
Member

jwakely commented Jan 16, 2017

Pick one.

e.g. just in overloading.tex:

overloading.tex:a pointer to member, or \tcode{std::nullptr_t}
overloading.tex:pointer-to-member-function type.
overloading.tex:pointer to member function type.
overloading.tex:function name is required to have the form of a pointer to member as
overloading.tex:                                // pointer to member
overloading.tex:For every pointer to member type \tcode{\placeholder{T}} or type \tcode{std::nullptr_t} there
overloading.tex:is an enumeration or pointer to member type,
overloading.tex:is a pointer, pointer-to-member, or scoped enumeration type, there exist candidate operator
@jensmaurer
Copy link
Member

jensmaurer commented Jan 16, 2017

You're confused. It's hyphenated when it's an adjective (or part of one), as in "pointer-to-member-function type", and it's not hyphenated when it's a noun, e.g. "the form of a pointer to member". This is standard English grammar, as far as I know.

http://www.grammarbook.com/punctuation/hyphens.asp

"We have a one-year-old child." vs. "My child is one year old."

@jwakely
Copy link
Member Author

jwakely commented Jan 16, 2017

I don't think we're following that rule though.

What's the difference between "when matching a pointer-to-member-function type" and "match targets of pointer to member function type" two paragraphs later?

@jwakely
Copy link
Member Author

jwakely commented Jan 16, 2017

And "For every pointer to member type T"

OK, I shouldn't have said "Pick one." but it doesn't look consistent and/or correct in all cases.

@jensmaurer
Copy link
Member

Agreed. This one should be hyphenated, for example:

overloading.tex:pointer to member function type.

@jensmaurer
Copy link
Member

jensmaurer commented Mar 2, 2017

Editorial committee consensus: Do not hyphenate pointer-to-object or pointer-to-function (they are pointers). Define pointer-to-member as a term of art (adjective only; fix noun uses). Also consider canonical type strings. There is a false duality in the conversion section; we might want to rename headings.

@jensmaurer jensmaurer added this to the C++20 milestone Mar 2, 2017
jensmaurer added a commit to jensmaurer/draft that referenced this issue Mar 18, 2017
jensmaurer added a commit to jensmaurer/draft that referenced this issue Jul 21, 2017
AaronBallman pushed a commit to AaronBallman/draft that referenced this issue Nov 15, 2017
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

No branches or pull requests

2 participants