t { void test(S)(S s) { import std.utf, std.algorithm.comparison; assert(equal(s.byCodeUnit, s.ptr.nullTerminated)); } // String literals are null-terminated test("foo"); test("foo"w); test("foo"d
See Implementation