[Issue 18580] std.conv.to!(ubyte[])(void[]) should work

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 8 17:41:30 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18580

--- Comment #3 from Jack Stouffer <jack at jackstouffer.com> ---
(In reply to Jonathan M Davis from comment #2)
> Ah, the title gave what you were trying to do. I missed that. I'm not sure
> that I agree that it should work though, since it's unsafe and arguably
> should look that way, which is part of why casts are the way they are, with
> cast being very greppable.

Is it unsafe though? In this specific case of void[] to ubyte[] (or vise versa)
isn't it ok?

--


More information about the Digitalmars-d-bugs mailing list