digitalmars.D.bugs - [Issue 5054] New: Splitter example doesn't work
- d-bugmail puremagic.com (24/24) Oct 14 2010 http://d.puremagic.com/issues/show_bug.cgi?id=5054
- d-bugmail puremagic.com (15/15) Oct 14 2010 http://d.puremagic.com/issues/show_bug.cgi?id=5054
- d-bugmail puremagic.com (12/12) Oct 14 2010 http://d.puremagic.com/issues/show_bug.cgi?id=5054
- d-bugmail puremagic.com (12/12) Nov 16 2010 http://d.puremagic.com/issues/show_bug.cgi?id=5054
http://d.puremagic.com/issues/show_bug.cgi?id=5054 Summary: Splitter example doesn't work Product: D Version: D2 Platform: Other OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: andrej.mitrovich gmail.com 10:25:40 PDT --- DMD 2.048 (not tested with 2.049): From http://www.digitalmars.com/d/2.0/phobos/std_algorithm.html#Splitter : import std.algorithm void main() { assert(equal(splitter("hello world", ' ') == ["hello", "", "world"]); } -- Some 5 lines of error messages.. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 14 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5054 bearophile_hugs eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_hugs eml.cc Your code has some bugs, try this: import std.algorithm; void main() { assert(equal(splitter("hello world", ' '), ["hello", "", "world"])); } Unless you have other problems, you may close this bug report as ivalid. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 14 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5054 11:14:55 PDT --- *I* was missing a closing bracket right there, sorry. But the documentation is the one having the "==" instead of ",". Docs: assert(equal(splitter("hello world", ' ') == [ "hello", "", "world" ])); Should be: assert(equal(splitter("hello world", ' '), [ "hello", "", "world" ])); So that needs fixing. :) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 14 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5054 Shin Fujishiro <rsinfu gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |rsinfu gmail.com Resolution| |FIXED --- Fixed: http://www.dsource.org/projects/phobos/changeset/2168 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 16 2010