W3C home > Mailing lists > Public > public-webrtc@w3.org > December 2013

Re: Nullable interface members (which cannot be initialized to null by the script)

From: Adam Bergkvist <adam.bergkvist@ericsson.com>
Date: Fri, 6 Dec 2013 07:33:08 +0100
Message-ID: <52A16FA4.3040300@ericsson.com>
To: Martin Thomson <martin.thomson@gmail.com>
CC: "public-webrtc@w3.org" <public-webrtc@w3.org>
On 2013-12-05 18:54, Martin Thomson wrote:
> Yes, remove the ? where appropriate.
>
> On 5 December 2013 02:11, Adam Bergkvist <adam.bergkvist@ericsson.com> wrote:
>> interface RTCIceCandidate {
>>                  attribute DOMString?      candidate;
>>                  attribute DOMString?      sdpMid;
>>                  attribute unsigned short? sdpMLineIndex;
>
> Given that null is used as a sentinel here signifying the end of
> candidate gathering, this one can't be changed.

In that case the candidate object itself is null IIRC; not only the 
candidate attribute.

/Adam
Received on Friday, 6 December 2013 06:33:32 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:37 UTC