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

--- Comment #2 from Andrei Alexandrescu <[email protected]> ---
(In reply to moonlightsentinel from comment #1)
> Shouldn't initialize rather accept a void[] instead of void* to detect
> errors, e.g. invalid size?

Even better. Sadly (a) all other primitives use void*; (b) only size mismatches
would be detected, not plenty of other errors, so the yield is low.

--

Reply via email to