[Issue 10816] Support for is(T1 != T2) syntax

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 13 09:07:08 PDT 2013


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



--- Comment #4 from Dicebot <public at dicebot.lv> 2013-08-13 09:07:06 PDT ---
(In reply to comment #3)
> Are you aware that is(T1==T2) gives false for invalid T1 and error for invalid
> T2?

Was aware about the former, not about the latter.

But I don't see how it is relevant. When i compare types via is(T1 == T2),
information that matters is "are those two the same?". It does not matter why
are they not the same. Same goes for is(T1 != T2), but other way around - "are
those types not the same"?

Making "!is(T1 != T2) != is(T1 == T2)" breaks common sense quite a lot in my
opinion.

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