[Issue 15932] Get rid of the implicit slicing of static arrays
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Nov 16 10:11:30 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=15932
--- Comment #6 from anonymous4 <dfj1esp02 at sneakemail.com> ---
AIU this issue is inspired by std.digest design. You can always have error
prone interface and if std.digest is too error prone for intended users, it's
just wrong design and should have a safer interface: either take the result
storage as an argument or return a heap allocated array or return a value type
that will require explicit slicing.
--
More information about the Digitalmars-d-bugs
mailing list