How to use strip or stripRight on char[len] ? Thanks.

FrankLike 1150015857 at qq.com
Thu Feb 22 17:15:52 UTC 2018


On Thursday, 22 February 2018 at 17:08:14 UTC, FrankLike wrote:
> On Thursday, 22 February 2018 at 16:59:40 UTC, Adam D. Ruppe 
> wrote:
>> On Thursday, 22 February 2018 at 16:55:14 UTC, FrankLike wrote:
>
>> It is simply that these functions require a slice so it can 
>> resize it and you can't resize a static array.
>
     char[100] abc ="aabc    ";
     char[] p = abc;
     string aa = to!string(p);
      string aaa = aa.stripRight;


  It get the same result too.




More information about the Digitalmars-d-learn mailing list