Re: [Web MIDI API] send() method should also allow 3 shorts + timestamp

On Tuesday, December 18, 2012, 7:19:30 PM, Chris wrote:

CW> On Tue, Dec 18, 2012 at 12:24 AM, Marcos Caceres
CW> <marcosscaceres@gmail.com> wrote:
CW>  
CW> This reminds me: why "short" instead of "byte" as the type? I
CW> raised that in another email as it applies generally.

CW> No reason.  :)  Actually, no reason it's not "octet" - it should
CW> not be "byte", because I think the conversion might cause
CW> confusion (or problems? I don't know what happens when "0x7f" is
CW> assigned to a signed 8-bit value.)

Or uint8_t perhaps?

Opinions vary on whether byte is signed or not.



-- 
 Chris Lilley   Technical Director, Interaction Domain                 
 W3C Graphics Activity Lead, Fonts Activity Lead
 Co-Chair, W3C Hypertext CG
 Member, CSS, WebFonts, SVG Working Groups

Received on Tuesday, 8 January 2013 16:22:05 UTC