[Issue 8411] core.time: No easy way to check if Duration is empty
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 24 12:36:21 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8411
Jonathan M Davis <jmdavisProg at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jmdavisProg at gmx.com
--- Comment #1 from Jonathan M Davis <jmdavisProg at gmx.com> 2013-01-24 12:36:20 PST ---
We now have Duration.zero, so
if(duration != Duration.zero)
will work as will
if(duration != Duration.init)
But there's no such thing as an "empty" duration. All durations have a value,
and they aren't ranges or containers. It makes as much sense to have an isEmpty
property on a Duration as it does to have it on an int.
--
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