I do not understand what the problem is in this code.

steven kladitis via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Mar 3 08:43:22 PST 2017


On Friday, 3 March 2017 at 04:14:02 UTC, Jordan Wilson wrote:
> On Friday, 3 March 2017 at 03:11:24 UTC, steven kladitis wrote:
>> [...]
>
> I saw this answer for a similar question from Adam D. Ruppe:
> Quote:
> "...it is anything that Phobos considers "bidirectional" and 
> "swappable" - an array it can reverse easily and swap 
> individual elements, and it considers plain string to be 
> non-swappable due to UTF-8 encoding. Due to its variable length 
> element encoding, swapping two chars may require reshuffling 
> the entire array, which would be far more expensive than the 
> function allows.
>
> [...]

added std.conv and it works!! thanks for the help!!!


More information about the Digitalmars-d-learn mailing list