Program size, linking matter, and static this()
so
so at so.so
Wed Dec 21 05:22:05 PST 2011
On Wed, 21 Dec 2011 07:34:30 +0200, Jonathan M Davis <jmdavisProg at gmx.com>
wrote:
> 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
Supporting module nesting in single file wouldn't hurt, would it?
module main;
module nested
{
}
More information about the Digitalmars-d
mailing list