http://d.puremagic.com/issues/show_bug.cgi?id=6620

           Summary: argument evaluation order inversed for extern(C)
           Product: D
           Version: D2
          Platform: Other
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 2011-09-07 16:05:10 PDT ---
version (none)
{
    extern(C) int bar(int a, int b) { return b - a; }
}
else
{
    int bar(int a, int b) { return b - a; }
}

void main()
{
    int i;
    assert(bar(++i, ++i) == 1);
}

---

I know argument evaluation order isn't really guaranteed to be left to right.
But having a reverse order for extern(C) calls is simply surprising.

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

Reply via email to