[Issue 10214] Incorrect "element-wise assignment is better" warning

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 30 14:13:38 PDT 2013


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


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-05-30 14:13:36 PDT ---
The compiler code:

-----
if (e2->op == TOKslice || t2->implicitConvTo(t1->nextOf()))
    warning("explicit element-wise assignment (%s)[] = %s is better than %s =
%s",
        e1str, e2str, e1str, e2str);
else
    warning("explicit element-wise assignment (%s)[] = (%s)[] is better than %s
= %s",
        e1str, e2str, e1str, e2str);

-----

It almost seems like the two warnings should be swapped around?

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