Closed
Bug 568089
Opened 15 years ago
Closed 15 years ago
TM: rename iteratorAtom -> __iterator__Atom
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: gal, Assigned: gal)
Details
Attachments
(1 file, 1 obsolete file)
|
5.34 KB,
patch
|
Details | Diff | Splinter Review |
For clarity, and also I would like to add an iteratorAtom that means "iterator". Also, I would like to remove js_iterator_str, because js___iterator___str is just too ugly, and its used only twice, and soon we might remove it anyway.
| Assignee | ||
Comment 1•15 years ago
|
||
Assignee: general → gal
| Assignee | ||
Comment 2•15 years ago
|
||
Attachment #447378 -
Attachment is obsolete: true
| Assignee | ||
Comment 3•15 years ago
|
||
Comment on attachment 447379 [details] [diff] [review]
avoid duplicate string by using AtomToPrintableString
Are you ok with this renaming?
Attachment #447379 -
Flags: review?(brendan)
Comment 4•15 years ago
|
||
Double-underscore-using names are reserved in C++ for the compiler and the standard library implementation. I don't think we can make this change (although I could be open to something other than iteratorAtom).
| Assignee | ||
Comment 5•15 years ago
|
||
The name doesn't start with double underscore.
| Assignee | ||
Comment 6•15 years ago
|
||
Luke, is __name as a field name ok in C++ or is that somehow reserved? I thought only linker symbols start with _ are funky.
Comment 7•15 years ago
|
||
__ *anywhere* in the name makes it non-kosher, not just at the start (and not just linker symbols, either).
"Each name that contains a double underscore (__) or begins with an underscore followed by an uppercase letter (2.11) is reserved to the implementation for any use."
ISO C++, 17.4.3.1.2
| Assignee | ||
Comment 8•15 years ago
|
||
I guess that settles it.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
Updated•15 years ago
|
Attachment #447379 -
Flags: review?(brendan)
You need to log in
before you can comment on or make changes to this bug.
Description
•