Closed Bug 568089 Opened 15 years ago Closed 15 years ago

TM: rename iteratorAtom -> __iterator__Atom

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: gal, Assigned: gal)

Details

Attachments

(1 file, 1 obsolete file)

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.
Attached patch patch (obsolete) — Splinter Review
Assignee: general → gal
Attachment #447378 - Attachment is obsolete: true
Comment on attachment 447379 [details] [diff] [review] avoid duplicate string by using AtomToPrintableString Are you ok with this renaming?
Attachment #447379 - Flags: review?(brendan)
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).
The name doesn't start with double underscore.
Luke, is __name as a field name ok in C++ or is that somehow reserved? I thought only linker symbols start with _ are funky.
__ *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
I guess that settles it.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
Attachment #447379 - Flags: review?(brendan)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: