[Issue 4317] Calling std.string.split with static array for separator fails to compile

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 25 02:51:59 PDT 2011


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


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #2 from bearophile_hugs at eml.cc 2011-05-25 02:47:42 PDT ---
(In reply to comment #1)
>   split("some string", whitespace[])

In std.string whitespace is defined as:

immutable char[6] whitespace = " \t\v\r\n\f";               /// ASCII
whitespace

Isn't it better and nicer to define it as a normal string?

immutable string whitespace = " \t\v\r\n\f";               /// ASCII whitespace

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