-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Clarifications for name lookup in classes #2286
Comments
For 1, my understanding is that member functions are considered to be inside the class' scope even if they are defined out of line. This means that For 2, I believe |
Thanks, it looks like #989 covered these cases and we're just missing a link as reminder. |
Nevermind, I had misread member_access.md as covering name lookup within classes but it doesn't. It's still a question to leads to ensure the path they want. |
On second thought, I've switched #2287 to a proposal to try to just resolve this in one go. |
Summary of issue:
In classes:
me.x
is required, but doesCreate()
to call one member from another?me.Create()
work?Details:
#472 mentions unqualified name lookup, but doesn't appear to address the question ("We didn't reach a conclusion between (1) and (2) here"). #875 doesn't clearly address it.
For example:
Note, an alternative here would be to require writing something like
typeof(me).IteratorType
ortypeof(x).IteratorType
, requiring stronger explicitness. I think the leads may have a planned answer for this though so I won't dig in.Any other information that you want to share?
No response
The text was updated successfully, but these errors were encountered: