[Issue 8335] New: DMD ignoring ref for array arguments
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jul 2 03:36:56 PDT 2012
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: nobody at puremagic.com
ReportedBy: puneet at coverify.org
--- Comment #0 from Puneet Goel <puneet at 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: -------
More information about the Digitalmars-d-bugs
mailing list