[Issue 9547] typeof() which requires .init must be properly documented

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 19 21:02:54 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9547



--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> 2013-02-19 21:02:53 PST ---
(In reply to comment #0)
> This worked in 2.061, and broke LuaD in 2.062. The workaround (or rather the
> new valid code) is:
> 
> alias typeof(T.init[0]) ElemType;

This is bug fix for issue 6408. `T[0]` should be always analyzed as "zero
length static array of T", but it was *accidentally* treated as T.init[0].

> However this change *must* be clearly documented in the changelog, and the
> requirement should be part of the documentation somewhere.

I can agree that some of proper bug fixes require clear explanation for better
migration. We need to pay attention for them in beta phase, and document them.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list