www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Pattern-matching qualifiers with is() expressions

reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
Am I doing something wrong? This is a fairly basic match, I'm surprised 
this hasn't surfaced yet:

https://issues.dlang.org/show_bug.cgi?id=16581


Andrei
Oct 03 2016
parent Jonathan M Davis via Digitalmars-d <digitalmars-d puremagic.com> writes:
On Monday, October 03, 2016 12:40:45 Andrei Alexandrescu via Digitalmars-d 
wrote:
 Am I doing something wrong? This is a fairly basic match, I'm surprised
 this hasn't surfaced yet:

 https://issues.dlang.org/show_bug.cgi?id=16581
My guess is that it hasn't been fined primarily because that version of an is expression probably isn't used all that often. And if the problem is qualifier-specific, then in order to hit the bug, someone would have to not only use that specific version of an is expression, but they'd have to be testing qualifiers with it as well. And I'd guess that that just isn't very common. Not to mention, even if some code did hit it, depending on what the it did, the bug might go unnoticed. - Jonathan M Davis
Oct 03 2016