[Issue 4163] if(bool = bool) results in ill-worded error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat May 8 04:42:48 PDT 2010


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


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #1 from bearophile_hugs at eml.cc 2010-05-08 04:42:46 PDT ---
Be careful with the wording, because this is allowed in D:
if(bool c = !b)

Writing a compiler requires literary expression skills :-)

A possible error message, that looks too much complex:
Error: if(x = y) is now allowed, use if(T x = y) or if((x = y) == z).

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