[Issue 6730] std.algorithm.splitter conflicts with std.array.splitter

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 25 14:20:35 PDT 2011


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


Jonathan M Davis <jmdavisProg at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg at gmx.com


--- Comment #1 from Jonathan M Davis <jmdavisProg at gmx.com> 2011-09-25 14:19:59 PDT ---
In general, I'd say yes. The fact that two functions in different modules can
have the same name and conflict is fully expected and acceptable. The module
system gives a number of ways to get around the problem. That's not an issue.

However, in this case, what appears to be happening is that we have almost
identical functions in two modules. The only difference between them is that
the one in std.array will work with immutable strings, since it specifically
types itself as taking an array, whereas std.algorithm's types itself as taking
a range (though the range must be a string per the template constraint). If
they did different things, that would be one thing, but I see no reason to have
two identical functions. One of the two should be scheduled for deprecation.

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