Closed Bug 7795 Opened 25 years ago Closed 7 years ago

exorcise nsIEnumerator in favor of nsISimpleEnumerator

Categories

(Core :: XPCOM, defect, P3)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: waterson, Assigned: erahm)

References

()

Details

(Keywords: arch)

...or some other more scripable interface.

I've started on this crusade several times only to be chopped at the knees by
lethargy or some other overwhelming circumstance.
I'll do it. I swear.
Status: NEW → ASSIGNED
Target Milestone: M10
Depends on: 11598
Moving out non-critical tasks.
*** Bug 8790 has been marked as a duplicate of this bug. ***
In verifying bug 8790, I just wanted to point out that warren mentioned cleaning
up nsIBidirectionalEnumerator also... Including his original comment:

"Chris -- you started this, so I'll help you finish it. :-)

We should eradicate nsIEnumerator and nsIBidirectionalEnumerator from
throughout the codebase if we can, switching over to nsISimpleEnumerator.
Having both is bad because they're incompatible.

We probably should remove the class definitions from nsEnumeratorUtils.h and
replace them with function calls.

When we're done, we can rename nsISimpleEnumerator to nsIEnumerator too."
maybe scc'll do it. he's got balls.
Target Milestone: M15 → M20
In fact, I'd like to use the even better enumerators where possible, i.e., |
nsIInputIterator|, |nsIOutputIterator|, |nsIForwardIterator|, |
nsIBidirectionalIterator|, |nsIRandomAccessIterator|, which will provide easy 
access to the |nsISimpleEnumerator| functionality that JS clients in particular 
still love
Assignee: waterson → scc
Status: ASSIGNED → NEW
Status: NEW → ASSIGNED
mass re-assigning to my new bugzilla account
Assignee: scc → scc
Status: ASSIGNED → NEW
Status: NEW → ASSIGNED
Keywords: arch
Depends on: 40722
I guess we missed the boat on these (by about a hemisphere).  Our collection
classes are pretty much frozen across the board; I don't see any realistic mass
resolution to this situation before 2.0.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → WONTFIX
Component: XP Miscellany → XPCOM
Should this be closed just because this didn't make 2.0?
The nsIEnumerator is still declared obsolete so this work should be done some day. I've not found any other bug for this.

https://developer.mozilla.org/en-US/docs/XPCOM_array_guide
Status: RESOLVED → REOPENED
OS: Windows NT → All
Hardware: x86 → All
Resolution: WONTFIX → ---
Blocks: 834911
No longer blocks: 834911
Depends on: 856238
Bug 792209 removed |nsIEnumerator.idl|.
Assignee: scc → erahm
Status: REOPENED → RESOLVED
Closed: 22 years ago7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.