what exactly is string length?

Paul Backus snarwin at gmail.com
Fri Apr 2 14:29:29 UTC 2021


On Friday, 2 April 2021 at 05:39:26 UTC, mw wrote:
> Finally, I'm using:
>
> https://run.dlang.io/is/651lT6
>
>     string t = text("head-", s[].until('\0').array, "-tail");

FYI, you don't need the call to `.array` there--`text` accepts 
input ranges.


More information about the Digitalmars-d-learn mailing list