[Issue 17191] New: style: require all assert's to be supplied message

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Feb 16 16:47:38 PST 2017


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

          Issue ID: 17191
           Summary: style: require all assert's to be supplied message
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: greeenify at gmail.com

`assert(0)`'s yield to a segfault without any user-friendly message.
Hence the idea is to require all assert's in Phobos (and druntime) to have a
descriptive error message in case the user ever runs into it.

At the moment there are 302 assert(0)'s without a message at Phobos.
Ideally once all assert's have been supplied with a message, a style check
should be enabled to prevent regressions.

--


More information about the Digitalmars-d-bugs mailing list