[Issue 16394] TypeInfo.init() for static arrays returns single element instead of whole array
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Aug 15 15:44:48 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16394
--- Comment #4 from Steven Schveighoffer <schveiguy at yahoo.com> ---
typeid(T).initializer is not meant to be used without understanding what it
does in all cases. There are other subtle issues with it.
I think this is just a documentation issue. I can see where this would cause
problems :(
(In reply to Eyal from comment #3)
> Additionally, x = x.init would work without blowing up the stack when x is
> large, and then accessing typeid() would be unnecessary.
I'm not sure what this means.
--
More information about the Digitalmars-d-bugs
mailing list