[Issue 7515] The new std.string.translate is slow for ASCII text

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 6 16:06:33 PST 2012


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



--- Comment #5 from Jonathan M Davis <jmdavisProg at gmx.com> 2012-03-06 16:06:35 PST ---
And _why_ would you ever need to build it manually? That's what makeTrans is
for.

The docs would have to explain exactly how the array is laid out for it to be
at all reasonable for the user to be screwing with it, and right now, they
definitely treat it as completely opaque. And without a really good reason why
the user would be screwing with the translation table on their own, I would
definitely argue that having it be opaque is a huge benefit, since it stops a
whole possible set of bugs caused by translate being passed an array which
doesn't conform to what it requires.

-- 
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