[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 07:41:28 PDT 2016


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

--- Comment #17 from Eyal <eyal at weka.io> ---
> The other field being printed is the context pointer, since your struct is nested in the unittest.

Yeah, I've since figured it out - but was surprised because it is inconsistent
with code blocks like: x=>x+1 which is inferred to be a function, not a
delegate.  So I expected structs to be similarly inferred to static structs
when they do not actually need the context ptr.

--


More information about the Digitalmars-d-bugs mailing list