Re: [heycam/webidl] FrozenArray: Is T mutable? (#348)

> If the values of FrozenArray<T> have values that are references

The quoted bit is saying the `FrozenArray<T>` itself is a reference, always, unlike `sequence<T>` which is a pass-by-value thing.

When it says "unmodifiable values" what it means is IDL values, in the sense of "things that have an IDL type".  These could be references or value types, depending on T.  This might be worth making clearer somehow...

> the implementation just has to make sure that the elements are copied

Yes, exactly, just like it would for `FrozenArray<long>`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/348#issuecomment-296666274

Received on Monday, 24 April 2017 13:24:34 UTC