[Issue 18580] std.conv.to!(ubyte[])(void[]) should work
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Mar 9 16:45:17 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18580
--- Comment #6 from ag0aep6g at gmail.com ---
(In reply to Jack Stouffer from comment #5)
> Well the argument there is that the conversion from p to v should be unsafe,
> but not the conversion of v to b.
Either or, I guess. Either you forbid going from pointers to void[], or you
forbid going anywhere from void[]. As far as I see, both options provide
safety, or does the second one have any holes?
DMD currently goes with the second option. Changing it would not be a small
task, I think.
--
More information about the Digitalmars-d-bugs
mailing list