[Issue 10423] built-in arrays being overwritten
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jun 20 07:39:21 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10423
Nils <nilsbossung at googlemail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |nilsbossung at googlemail.com
Resolution| |DUPLICATE
--- Comment #1 from Nils <nilsbossung at googlemail.com> 2013-06-20 07:39:13 PDT ---
Reduction shows that it's a duplicate of issue 2947:
struct S {
double[] _data = new double[1];
this(int ignored) {}
}
void main() {
assert(S()._data !is S()._data); // passes
assert(S(0)._data !is S(0)._data); // fails
assert((new S)._data !is (new S)._data); // fails
}
*** This issue has been marked as a duplicate of issue 2947 ***
--
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