[Issue 3990] Deferencing a dynamic array as pointer
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 6 04:15:17 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3990
--- Comment #1 from bearophile_hugs at eml.cc 2010-05-06 04:15:13 PDT ---
Another case that I think is related:
import std.stdio: writeln;
struct Arr(int N) {
int[N] data;
alias data this;
}
void main() {
auto p = new Arr!(10);
*p = 10;
writeln(p.data); // Output: 10 10 10 10 10 10 10 10 10 10
}
--
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