On Wed, Mar 20, 2013 at 1:54 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote: > > > ES itself will presumably be introducing various To* conversions for its > definition of typed arrays and DataViews. Do we expect web specs to need > conversions like those in other contexts? Those are the questions we > should be asking ourselves. Check out "Table 35" in the latest ES6 draft. For example it provides the following for Uint8Array: Constructor Name: Uint8Array Element Type: Uint8 Element Size: 1 Conversion Operation: ToUint8 Description: 8-bit unsigned integer Equivalent C Type: unsigned char So, with ES6 we now have: ToInt8, ToUint8, ToUint8Clamp, ToInt16, ToUint16, ToInt32 and ToUint32 -- erikReceived on Wednesday, 20 March 2013 18:21:46 UTC
This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:08 UTC