https://issues.dlang.org/show_bug.cgi?id=3150
Andrei Alexandrescu and...@erdani.com changed:
What|Removed |Added
Version|D1 D2 |D2
--
http://d.puremagic.com/issues/show_bug.cgi?id=3150
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Status|NEW |RESOLVED
/b0a0e35d23c996d6e068e2b859f2f51506f535f0
Issue 3150 - cast from dynamic array to ulong is allowed
This patch makes this deprecated behavior.
https://github.com/D-Programming-Language/dmd/commit/cc79fc96dc05742e07d03e4c575307f47f1d46dc
Merge pull request #661 from yebblies/issue3150
Issue 3150 - cast from dynamic array to ulong
http://d.puremagic.com/issues/show_bug.cgi?id=3150
yebblies yebbl...@gmail.com changed:
What|Removed |Added
CC||yebbl...@gmail.com
http://d.puremagic.com/issues/show_bug.cgi?id=3150
--- Comment #2 from Don clugd...@yahoo.com.au 2010-05-10 02:00:27 PDT ---
druntime currently relies on this behaviour in one place, and it's pretty nasty
code. For example, it assumes pointers are 32 bits long.
rt/lifetime.d
_d_newarraymT()
http://d.puremagic.com/issues/show_bug.cgi?id=3150
--- Comment #4 from Don clugd...@yahoo.com.au 2010-05-10 04:20:38 PDT ---
(In reply to comment #3)
Actually, you need a type besides a D array because you do not want to trigger
runtime calls when setting the length.
I don't understand this
http://d.puremagic.com/issues/show_bug.cgi?id=3150
--- Comment #5 from Steven Schveighoffer schvei...@yahoo.com 2010-05-10
04:28:16 PDT ---
Look at this part of the code, which actually writes the void[]:
auto r = _d_newarrayT(ti, dim); // r is of type ulong
p = *cast(void[]*)(r);
This is
http://d.puremagic.com/issues/show_bug.cgi?id=3150
--- Comment #6 from Don clugd...@yahoo.com.au 2010-05-10 07:14:57 PDT ---
(In reply to comment #5)
Look at this part of the code, which actually writes the void[]:
auto r = _d_newarrayT(ti, dim); // r is of type ulong
p =
http://d.puremagic.com/issues/show_bug.cgi?id=3150
Don clugd...@yahoo.com.au changed:
What|Removed |Added
Keywords|spec|accepts-invalid, patch