Closed Bug 745899 Opened 13 years ago Closed 13 years ago

Add support in Nullable for sanely dealing with |sequence<T>?| types

Categories

(Core :: DOM: Core & HTML, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla15

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(1 file)

If sequence<T> becomes nsTArray<T>, then sequence<T>? should become Nullable< nsTArray<T> >. But then setting it to a non-null value involves an array copy, with the existing SetValue() API. The proposal is to add a SetValue (or PrepareToSetValue?) that returns a T& that can then be written to.
Attachment #615434 - Flags: review?(peterv)
Whiteboard: [need review]
Attachment #615434 - Flags: review?(peterv) → review+
Flags: in-testsuite-
Whiteboard: [need review] → [need birch merge]
Target Milestone: --- → mozilla15
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [need birch merge]
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: