Greetings<div><br></div><div>Normally I use released beta versions of dmd, but this time I started using dmd 2.060 for sake of std.string.xformat.</div><div><br></div><div>But I am facing issues. This version is ignoring "ref" when passing array as ref argument. Kindly see the code below. When I run this code it prints "Postblit called!" four time.</div>
<div><br></div><div>Regards</div><div>- Puneet</div><div><br></div><div>// </div><div><div>struct Foo {</div><div> this(this) {</div><div> import std.stdio;</div><div> writeln("Postblit called!");</div><div>
}</div><div>}</div><div><br></div><div>void barArray(ref Foo[4] _f) { /*do nothing*/ }</div><div><br></div><div>void main() {</div><div> Foo [4] fooArray;</div><div> barArray(fooArray);</div><div>}</div></div><div><br>
</div>