Summary: DMD ignoring ref for array arguments
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Puneet Goel <> 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;

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to