[Issue 4761] std.array.mul()

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Aug 29 15:44:25 PDT 2010


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



--- Comment #1 from bearophile_hugs at eml.cc 2010-08-29 15:44:13 PDT ---
This mul() needs more work, to be used on const arrays too. If you are
interested, I may try to write this improvement.

If the given array is one of the string types, it has to call
std.string.repeat() inside.

But the second argument of std.string.repeat() must become a signed integer,
otherwise you just need repeat("ab", -1) to create a crash.

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