[Issue 3990] Deferencing a dynamic array as pointer

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 31 07:44:17 PDT 2011


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



--- Comment #7 from Kenji Hara <k.hara.pg at gmail.com> 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
> see in the following program, so you are introducing/leaving an useless special
> case:
> 
[snip]
> So I think cast(int*)a1 should be forbidden.

The title of this issue is "Deferencing a dynamic array as pointer".
Therefore even if you think it is not useful, we should not discuss it in here.

Instead, you can file it as a new issue.

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