[Issue 16394] TypeInfo.init() for static arrays returns single element instead of whole array

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Aug 16 05:46:08 PDT 2016


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

--- Comment #10 from Steven Schveighoffer <schveiguy at yahoo.com> ---
A compile time error isn't possible, as this is a virtual function. It would
have to be a runtime error, which I think is even worse.

Let's just fix the docs, any bugs that are in druntime/Phobos, and move on. I
don't understand the pushback on this, TypeInfo.initializer is for druntime
internals, and those who need it for low-level memory management code. It's not
commonly used, so there aren't many places to fix. The current implementation
is entirely reasonable (why store N copies of the same thing?).

--


More information about the Digitalmars-d-bugs mailing list