<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>13363</bug_id>
          
          <creation_ts>2011-07-26 03:31:41 +0000</creation_ts>
          <short_desc>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?</short_desc>
          <delta_ts>2012-07-18 18:41:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NEEDSINFO</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#interface-definitions</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>shiki.okasaka</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>51470</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-07-26 03:31:41 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/video-conferencing-and-peer-to-peer-communication.html
Multipage: http://www.whatwg.org/C#interface-definitions
Complete: http://www.whatwg.org/c#interface-definitions

Comment:
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?

Posted from: 114.174.180.16 by shiki.okasaka@gmail.com
User agent: Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20100101 Firefox/5.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54271</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-08-05 23:36:50 +0000</bug_when>
    <thetext>The Web doesn&apos;t have any copy constructors... is this really a problem?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54461</commentid>
    <comment_count>2</comment_count>
    <who name="Shiki Okasaka">shiki.okasaka</who>
    <bug_when>2011-08-09 16:43:20 +0000</bug_when>
    <thetext>You&apos;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 &apos;MediaStream(const MediaStream&amp;)&apos;

If there&apos;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 &apos;new Object(value)&apos; pattern in ECMAScript which simply returns value.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>