@safe std.file.read

Dennis dkorpel at gmail.com
Mon Jan 6 10:31:29 UTC 2020


I would say it should return a ubyte[].

On Monday, 6 January 2020 at 10:07:37 UTC, WebFreak001 wrote:
> Or should void[] actually be castable to ubyte[] in @safe code?

Definitely not with the current semantics, since a void[] can 
alias pointers in @safe code.
See: https://issues.dlang.org/show_bug.cgi?id=20345


More information about the Digitalmars-d-learn mailing list