[Issue 8384] std.conv.to should allow conversion between any pair of string/wstring/dstring/char*/wchar*/dchar*

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 13 14:48:32 PDT 2012


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



--- Comment #8 from Jonathan M Davis <jmdavisProg at gmx.com> 2012-07-13 14:48:31 PDT ---
> Hooray for using "static" foreach to conveniently enumerate all the cases to
test!

Yeah. I do that all of the time when I have to test with multiple types
(especially with strings), and I always push for string-related tests to do
that when I see that someone is looking to submit code to Phobos for a function
that takes one or more strings as templated types, and their tests don't do
that. It's just one of those things that everyone who writes much in the way of
unit tests in D should learn and know about.

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