[Issue 5456] New: function default parameter appears to propagate to other functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 16 11:04:56 PST 2011


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 at puremagic.com
        ReportedBy: ellery-newcomer at utulsa.edu


--- Comment #0 from Ellery Newcomer <ellery-newcomer at utulsa.edu> 2011-01-16 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: -------


More information about the Digitalmars-d-bugs mailing list