[Issue 6725] core.time.dur should accept floating point

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jul 21 14:23:44 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=6725

--- Comment #17 from Vladimir Panteleev <thecybershadow at gmail.com> ---
(In reply to Jonathan M Davis from comment #16)
> Would you honestly expect folks to be using to!string or text to convert
> floating point values to Durations in their code on a regular basis? Sure,
> someone might do it, but it's an extra layer of ugly and a performance hit
> to do so. It doesn't _stop_ anyone from doing it, but it makes it hard
> enough and ugly enough that I'd expect most people not to do it.

Erm, yes, it is much less hard or ugly than your solution in comment #5.

--


More information about the Digitalmars-d-bugs mailing list