www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15208] New: Eradicate all uses of "Enforcement failed" in


          Issue ID: 15208
           Summary: Eradicate all uses of "Enforcement failed" in Phobos
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: diagnostic
          Severity: enhancement
          Priority: P5
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: thecybershadow gmail.com

Using enforce() with no message has clearly shown to be poor practice. This
class of diagnostic bugs has appeared in a number of instances:


(and variations of the above - just search Bugzilla for "Enforcement failed")

We should eradicate all uses of the message-less enforce() in Phobos, at least.

Oct 15 2015