[Bug 13363] The MediaStream(MediaStream parentStream) constructor seems to be confusing the ordinary copy constructor behavior. Could it be an operation of MediaStream rather than a constructor?

http://www.w3.org/Bugs/Public/show_bug.cgi?id=13363

Shiki Okasaka <shiki.okasaka@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |shiki.okasaka@gmail.com

--- Comment #2 from Shiki Okasaka <shiki.okasaka@gmail.com> 2011-08-09 16:43:20 UTC ---
You're correct; currently this issue only hits our Web IDL compiler for C++0x
binding, and technically this is not a problem in ECMAScript. 

 e.g., 
 MediaStream(MediaStream parentStream);  // C++
 error: invalid constructor; you probably meant 'MediaStream(const
MediaStream&)'

If there's no other way in the HTML specification, we will find a way to work
around it. However I think it would be nice if the use of this type of
constructors is generally avoided in Web IDL. This might be compared to the
'new Object(value)' pattern in ECMAScript which simply returns value.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 9 August 2011 16:43:22 UTC