How to add time to Clock.currTime
Jesse Phillips
Jesse.K.Phillips+D at gmail.com
Fri Oct 4 19:39:46 PDT 2013
On Saturday, 5 October 2013 at 01:31:35 UTC, JohnnyK wrote:
> Wow I appreciate the quick response. Ok I have seen this
> before.
> What is the dur? Where is dur defined? Also I am confused
> how 300.seconds would work. How can a literal number have
> properties?
http://dlang.org/phobos/core_time.html#.dur
300.seconds is using UFCS (Uniform Function Call Syntax) since
int does not have a property "seconds" the compiler will rewrite
the call to seconds(300).
More information about the Digitalmars-d-learn
mailing list