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

document the new ambiguous identifier resolution #23166

Merged
merged 6 commits into from
Jan 11, 2024

Conversation

metagn
Copy link
Collaborator

@metagn metagn commented Jan 4, 2024

refs #23123

Not sure if detailed enough.

doc/manual.md Outdated
the identifier has to be qualified unless it is an overloaded procedure or
iterator in which case the overloading resolution takes place:
If a module imports the same identifier from two different modules, the
identifier must be disambiguated in one of the following ways:
Copy link
Member

Choose a reason for hiding this comment

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

Good start, but the items 1, 2 are done by the compiler and 3 describes a way out for the programmer.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I now (hopefully) phrased them all as ways out for the programmer, and moved qualification to the top

@Araq Araq merged commit 6650b41 into nim-lang:devel Jan 11, 2024
19 checks passed
@Araq
Copy link
Member

Araq commented Jan 11, 2024

Better than before but not precise enough as it doesn't discuss how this works within generics etc.

Copy link
Contributor

Thanks for your hard work on this PR!
The lines below are statistics of the Nim compiler built from 6650b41

Hint: mm: orc; opt: speed; options: -d:release
177720 lines; 7.592s; 767.688MiB peakmem

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

2 participants