[Issue 16262] New: assumeUTF attributes change between debug and release mode

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jul 10 03:27:14 PDT 2016


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

          Issue ID: 16262
           Summary: assumeUTF attributes change between debug and release
                    mode
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: lodovico at giaretart.net

assumeUTF is @nogc in release mode, but not in debug mode.

The reason is that in debug mode it performs additional checks, which is not
bad per se, but makes working with assumeUTF too difficult (e.g. I cannot use
@nogc unittests).

In general, this change of meaning between debug and release mode should be
avoided.

See also https://forum.dlang.org/thread/wxxcwafaijelaavglxys@forum.dlang.org

--


More information about the Digitalmars-d-bugs mailing list