Programming Windows D Examples are now Online!

Jonathan M Davis jmdavisProg at gmx.com
Thu Jun 23 15:02:02 PDT 2011


On 2011-06-23 14:50, Andrej Mitrovic wrote:
> On 6/23/11, Steven Schveighoffer <schveiguy at yahoo.com> wrote:
> > On Thu, 23 Jun 2011 07:27:34 -0400, Jimmy Cao <jcao219 at gmail.com> wrote:
> >> Thread.sleep( 70_000_000 ); // 7 sec
> > 
> > Gah!
> > 
> > Here, let me fix that for you:
> > 
> > Thread.sleep(dur!"seconds"(7));
> > 
> > :)
> > 
> > -Steve
> 
> I find it very odd that for seconds we use "seconds", but for
> everything else we use "msec", "usec", "hnsecs" abbreviations.

Because it makes sense to use the full names up to seconds. After that, 
they're too long, so they get abbreviated.

- Jonathan M Davis


More information about the Digitalmars-d-announce mailing list