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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 19 20:50:43 PST 2013


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



--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-02-19 20:50:43 PST ---
(In reply to comment #0)
> However this change *must* be clearly documented in the changelog, and the
> requirement should be part of the documentation somewhere.

In addition to that we should change the error message, and perhaps even
consider warning the user of a change. E.g. the current error:

> Error: argument string[][0u] to typeof is not an expression

It could be:

Error: Cannot index into a type 'T[0u]', perhaps you meant 'T.init[0]' ?

-- 
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