[Issue 3990] Deferencing a dynamic array as pointer

2014-08-30 Thread via Digitalmars-d-bugs
- Deferencing a dynamic array as pointer Deprecation -> Error https://github.com/D-Programming-Language/dmd/commit/6adcefdfab9e304944eb552ed3b835d3bf979ec3 Merge pull request #3912 from yebblies/issue3990 Issue 3990 - Deferencing a dynamic array as pointer --

[Issue 3990] Deferencing a dynamic array as pointer

2014-08-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3990 yebblies changed: What|Removed |Added CC||yebbl...@gmail.com --- Comment #13 from yebblies

[Issue 3990] Deferencing a dynamic array as pointer

2012-01-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3990 yebblies changed: What|Removed |Added CC||2kor...@gmail.com --- Comment #12 from yebb

[Issue 3990] Deferencing a dynamic array as pointer

2011-12-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3990 Don changed: What|Removed |Added CC||jarrett.billingsley@gmail.c |

[Issue 3990] Deferencing a dynamic array as pointer

2011-11-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3990 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 3990] Deferencing a dynamic array as pointer

2011-10-31 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3990 --- Comment #9 from bearophile_h...@eml.cc 2011-10-31 12:24:36 PDT --- (In reply to comment #7) Thank you for the patch. > The title of this issue is "Deferencing a dynamic array as pointer". > Therefore even if you think it is not useful, we

[Issue 3990] Deferencing a dynamic array as pointer

2011-10-31 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3990 Kenji Hara changed: What|Removed |Added Keywords||patch --- Comment #8 from Kenji Hara 201

[Issue 3990] Deferencing a dynamic array as pointer

2011-10-31 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3990 --- Comment #7 from Kenji Hara 2011-10-31 07:43:01 PDT --- (In reply to comment #5) > I don't see the need to accept this cast. There is the ".ptr" so this cast is > not useful in practice. And generally this cast is refused by DMD 2.056 as you

[Issue 3990] Deferencing a dynamic array as pointer

2011-10-31 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3990 --- Comment #6 from bearophile_h...@eml.cc 2011-10-31 05:39:53 PDT --- (In reply to comment #4) > This is not related. You are right, it's not related, it's a different problem. > And, the assignment an element type into static array is vali

[Issue 3990] Deferencing a dynamic array as pointer

2011-10-31 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3990 --- Comment #5 from bearophile_h...@eml.cc 2011-10-31 05:36:43 PDT --- (In reply to comment #3) > >assert(*a1 == 5); > >alias typeof(a1) T1; > >assert(is(typeof(*T1))); > > Dereferencing dynamic or static array without -d option is

[Issue 3990] Deferencing a dynamic array as pointer

2011-10-31 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3990 --- Comment #3 from Kenji Hara 2011-10-31 04:30:21 PDT --- (In reply to comment #0) 1. >assert(*a1 == 5); >alias typeof(a1) T1; >assert(is(typeof(*T1))); Dereferencing dynamic or static array without -d option is deprecated. I thi

[Issue 3990] Deferencing a dynamic array as pointer

2011-10-31 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3990 --- Comment #4 from Kenji Hara 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

[Issue 3990] Deferencing a dynamic array as pointer

2011-04-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3990 --- Comment #2 from bearophile_h...@eml.cc 2011-04-26 10:39:52 PDT --- More very good rationale from Steven Schveighoffer, that I think settles the situation: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=

[Issue 3990] Deferencing a dynamic array as pointer

2010-05-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3990 --- Comment #1 from bearophile_h...@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