[Issue 21277] TypeInfo.initializer() is the wrong abstraction, should be TypeInfo.initialize(void*)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 25 15:28:33 UTC 2020


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

--- Comment #2 from Andrei Alexandrescu <andrei at erdani.com> ---
(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.

--


More information about the Digitalmars-d-bugs mailing list