Closed Bug 585381 Opened 14 years ago Closed 11 years ago

Implement WebIDL's sequence, array types

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 851726

People

(Reporter: WeirdAl, Unassigned)

References

()

Details

I like the idea of being able to define sequences and arrays in XPIDL.  Sure, we have the two-part array definitions:

void foo(in PRUint32 count, [array, size_is(count)] in nsISupports items);

With sequence and array, we might be able to lose an argument:

void foo(in sequence<nsISupports> itemList);
void bar(in nsISupports[] itemList);

We could even conceivably go to multi-dimensional arrays:

typedef supportsList nsISupports[];
typedef supportsMatrix supportsList[];

void foo(in supportsMatrix itemGrid);

Filing under XPCOM, for lack of a better place.
I'm going to implement just array types in bug 677329.
Blocks: 591467
Blocks: 850430
Sequences are done; arrays are bug 851726.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.