[Issue 21277] TypeInfo.initializer() is the wrong abstraction, should be TypeInfo.initialize(void*)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Sep 26 12:32:39 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21277
kinke <kinke at gmx.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kinke at gmx.net
--- Comment #3 from kinke <kinke at gmx.net> ---
IMO, a general problem of this method is the ambiguity for class types -
initializer for a class *ref* or a class *instance*? [It's the latter.]
There's also a tight interconnection with the core.lifetime.emplace() template,
which uses it for classes and non-zero-init structs. emplace() takes a pointer
to a class ref to initialize the ref with null, and a void[] to emplace a class
instance.
--
More information about the Digitalmars-d-bugs
mailing list