www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5456] New: function default parameter appears to propagate to other functions

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5456

           Summary: function default parameter appears to propagate to
                    other functions
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: ellery-newcomer utulsa.edu



11:03:02 PST ---
the code:

void badurk ( in int[] i = [1]){
}
void quadurk(in int[]){
}

pragma(msg, typeof(&badurk));
pragma(msg, typeof(&quadurk));

void main(){
}


the result:
void function(in const(int[]) i = [1])
void function(in const(int[]) i = [1])

it doesn't allow calling `quadurk()`, though.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 16 2011
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5456


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies gmail.com
         Resolution|                            |DUPLICATE



*** This issue has been marked as a duplicate of issue 3646 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 03 2011