[Issue 2172] bool add bool accepted?
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jun 29 20:11:53 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2172
davidl at 126.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
------- Comment #3 from davidl at 126.com 2008-06-29 22:11 -------
I don't think we still need to keep consistent with C on that exactly point.
Compiler can at least giving a waring on this.
And adding code to BinExp::semantic , and provide a table like implicitconv
table
[op, e1->type, e2->type] mapping to bin op allow
for TOK.TOKadd, bool, bool -> false
TOK.TOKmul, bool, bool -> false
and this naturally fix issue 1511
--
More information about the Digitalmars-d-bugs
mailing list