-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Arrays need a redimension method that lets you redistribute their elements over any number of dimensions. As implemented in SpiderMonkey, this method lets you:
- Convert a non-array type
Tinto an array typeT([1])+-- i.e., any number of dimensions, as long as they all have length 1. - Convert an array type
T[...]into an array typeU[...]as long asTandUare equivalent.
Note that this second test is slightly wrong: we should require that T === U to preserve aliasing guarantees (we could do T === U || (T.isTransparent() && U.isTransparent() && T.equivalent(U)), but why? you could always cast the buffer).
Metadata
Metadata
Assignees
Labels
No labels