[Issue 17623] Unexpected failure of an assertion on empty strings

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 15 11:02:24 UTC 2022


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

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305 at gmail.com
         Resolution|---                         |INVALID

--- Comment #3 from RazvanN <razvan.nitu1305 at gmail.com> ---
The documentation is not wrong. To me this looks like quirk involving dynamic
arrays and string literals. Although it is not specifically spelled out, the
spec [1] does document string literals as being 0 terminated. So I think that
this issue is invalid.

[1] https://dlang.org/spec/arrays.html#printf

--


More information about the Digitalmars-d-bugs mailing list