Building a string from n chars

"Nordlöw" via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Sep 4 12:23:59 PDT 2014


On Thursday, 4 September 2014 at 19:22:42 UTC, Nordlöw wrote:
> Is DMD/Phobos already that clever!?

Further -vgc has nothing to say about

     string t1; t1 ~= '*'.repeat(n).array;
     string t2; t2 ~= "*".replicate(n);

.


More information about the Digitalmars-d-learn mailing list