[Issue 7281] std.string.reversed

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 12 16:39:40 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7281



--- Comment #4 from Jonathan M Davis <jmdavisProg at gmx.com> 2012-01-12 16:39:38 PST ---
Ah, yes. I forgot about that. array generates a dchar[], because retro returns
a range of dchar, not a string, and array returns an array with the same
element type as the range passed to it. The correct way to do it then would be

to!string(retro(str))

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list