W3C home > Mailing lists > Public > public-audio@w3.org > October to December 2012

[Bug 20510] send(sequence<short> data) should just be send(any data)

From: <bugzilla@jessica.w3.org>
Date: Wed, 26 Dec 2012 17:38:10 +0000
To: public-audio@w3.org
Message-ID: <bug-20510-5429-LIqrnYgFZi@http.www.w3.org/Bugs/Public/>

--- Comment #7 from Marcos Caceres <w3c@marcosc.com> ---
(In reply to comment #6)
> I still don't see why this is a benefit (allowing "any").  This seems like
> being overly permissive (no checks), but there's one narrow "magic correct"
> version (an array of something that's actually numbers) that will actually
> work.  The others are just degenerate non-functional oddities.
> Also - then I presume
> .send( 0xf8 )
> would actually work. 

No, you just get an array with 240 zeros in it :) 

> (Sends a Timing Clock message "tick".)  that seems to
> me like it will continually re-open the question of "why doesn't send( 0x90,
> 0x40, 0x7f ) work again?"

Ok, then lets just go with the sequence:

sequence<octet> data

And let WebIDL do its magic on each item of the array:

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Wednesday, 26 December 2012 17:38:11 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:15 UTC