Program size, linking matter, and static this()

Jonathan M Davis jmdavisProg at gmx.com
Tue Dec 20 21:34:30 PST 2011


On Wednesday, December 21, 2011 06:18:59 Jakob Ovrum wrote:
> On Wednesday, 21 December 2011 at 02:10:30 UTC, Jonathan M Davis
> > It's not the only place in Phobos which uses a class as a
> > namespace. I believe that both std.process and
> > std.windows.registry are doing the same thing.
> > 
> > In this case, it nicely group all of the functions that are
> > grabbing the time in one form or another. They're all
> > effectively grabbing the time from the system clock, so they're
> > grouped on Clock.
> > 
> > - Jonathan M Davis
> 
> Sounds like the perfect candidate for its own module.

Not out of the question, I suppose, but it would make an awfully small module 
and would inevitably make it that much harder for people to figure out how to 
get the current time.

- Jonathan M Davis


More information about the Digitalmars-d mailing list