[Issue 2532] '=' does not give a boolean result

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Dec 21 09:47:08 PST 2008


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





------- Comment #1 from jarrett.billingsley at gmail.com  2008-12-21 11:47 -------
= does not give a boolean result for good reason: it's to avoid the common
mistake in C/C++ where:

if(x = 5) { ... }

is used when:

if(x == 5) { ... }

was meant.


-- 



More information about the Digitalmars-d-bugs mailing list