May 04, 2012 [Issue 8035] New: False hijacking error | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=8035 Summary: False hijacking error Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: andrei@metalanguage.com --- Comment #0 from Andrei Alexandrescu <andrei@metalanguage.com> 2012-05-04 07:01:06 PDT --- Consider: import std.regex, std.string; void main() { split(s"hello", regex("[ \t,.;:?]+")); } The compiler complains: test.d(5): Error: std.regex.split(String,RegEx) if (isSomeString!(String) && isRegexFor!(RegEx,String)) at /Users/aalexandre/code/d/phobos/std/regex.d(6796) conflicts with std.string.split at /Users/aalexandre/code/d/phobos/std/string.d(70) However, line 60 in std.string just aliases split to std.array.split. In turn, std.array defines two split functions, neither of which accepts a regex in the second position. So there is no potential hijacking. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 09, 2013 [Issue 8035] False hijacking error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | http://d.puremagic.com/issues/show_bug.cgi?id=8035 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2013-01-08 18:27:01 PST --- This is a dup of bug 8668. *** This issue has been marked as a duplicate of issue 8668 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation