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: [email protected]
Reporter: [email protected]
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/[email protected]
--