Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upTranslate _ as __ #1008
Conversation
This comment has been minimized.
This comment has been minimized.
highfive
added
the
S-awaiting-review
label
Sep 21, 2017
fitzgen
approved these changes
Sep 21, 2017
|
|
This comment has been minimized.
This comment has been minimized.
We attempt to handle this sort of thing during the codegen phase, and have a map of method names and field names where we count how many times a name has been seen, and append that number to the name for disambiguation. So you get It isn't perfect, but... shrug |
This comment has been minimized.
This comment has been minimized.
|
@bors-servo r+ |
This comment has been minimized.
This comment has been minimized.
|
|
highfive
assigned
fitzgen
Sep 21, 2017
highfive
added
S-awaiting-merge
and removed
S-awaiting-review
labels
Sep 21, 2017
This comment has been minimized.
This comment has been minimized.
bors-servo
added a commit
that referenced
this pull request
Sep 21, 2017
This comment has been minimized.
This comment has been minimized.
|
|
AndrewGaspar commentedSep 21, 2017
•
edited by fitzgen
This change treats _ as a reserved identifier to resolve the bug reported in #631.
I have one concern - if the header has both an
_and__identifier in the global namespace, this will cause a conflict. However, it seems like we already don't handle that case forkeyword_(e.g.abstract_,alignof_, etc.) so it doesn't seem like we need a solution specifically for__in this change.Fixes #631.