[Issue 3990] Deferencing a dynamic array as pointer
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Oct 31 04:34:48 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=3990
--- Comment #4 from Kenji Hara <k.hara.pg at gmail.com> 2011-10-31 04:33:36 PDT ---
(In reply to comment #1)
This is not related.
> auto p = new Arr!(10);
> *p = 10;
means
Arr!(10)* p = new Arr!(10);
(*p).data = 10; // see alias this after deref-ing of p
And, the assignment an element type into static array is valid.
int[10] sa;
sa = 10; // translated to sa[] = 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