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

--- Comment #2 from Stephen Grammer <[email protected]> ---
Thanks! I missed leftJustify. That is exactly what I need. If you are planning
to add more asserts to document the behavior of padLeft, maybe consider adding:
-------------------------------------------------------
// implicitly converts to a range of uint when padding dchar[] with char
static assert(is(ElementType!(typeof("string".padLeft('0', 10))) == uint));
static assert(is(ElementType!(typeof("string".padLeft(dchar('0'), 10))) ==
dchar));

--

Reply via email to