[Issue 3990] Deferencing a dynamic array as pointer

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 31 05:41:05 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=3990



--- Comment #6 from bearophile_hugs at 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 valid.
> 
>   int[10] sa;
>   sa = 10;  // translated to sa[] = 10

It's currently valid, but I think it should be forbidden. I think D should
require the [] here. See bug 3971

-- 
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