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

           Summary: DMD ignoring ref for array arguments
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: pun...@coverify.org


--- Comment #0 from Puneet Goel <pun...@coverify.org> 2012-07-02 03:39:35 PDT 
---
I am testing with the latest pull from github and dmd ignoring "ref" when
passing array as ref argument. Kindly see the code below. When I run this code
it prints "Postblit called!" four time.

// 
struct Foo {
  this(this) {
    import std.stdio;
    writeln("Postblit called!");
  }
}

void barArray(ref Foo[4] _f) { /*do nothing*/ }

void main() {
  Foo [4] fooArray;
  barArray(fooArray);
}

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

Reply via email to