July 02, 2012 Re: dmd 2.060 ignoring ref for Array arguments | ||||
|---|---|---|---|---|
| ||||
On Monday, July 02, 2012 14:26:33 d coder wrote: > Greetings > > Normally I use released beta versions of dmd, but this time I started using dmd 2.060 for sake of std.string.xformat. > > 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. > > Regards > - Puneet > > // > 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); > } Then report it: http://d.puremagic.com/issues - Jonathan M Davis | ||||
July 02, 2012 Re: dmd 2.060 ignoring ref for Array arguments | ||||
|---|---|---|---|---|
| ||||
Attachments:
| Done. http://d.puremagic.com/issues/show_bug.cgi?id=8335 | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply