https://issues.dlang.org/show_bug.cgi?id=18580
Steven Schveighoffer <schvei...@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |schvei...@yahoo.com --- Comment #8 from Steven Schveighoffer <schvei...@yahoo.com> --- There are 2 possibilities I see for this: 1. It doesn't work, use a cast. 2. It should duplicate the array into a new ubyte array. Simply doing the cast in std.conv.to is not acceptable, even in @system code, as it's equivalent to a possibly undefined-behavior inducing cast. to is supposed to be a "safe" cast. It may be possible to allow a direct cast to const(ubyte)[]. --