Program size, linking matter, and static this()
Marco Leise
Marco.Leise at gmx.de
Tue Dec 20 12:58:45 PST 2011
Am 19.12.2011, 19:08 Uhr, schrieb Walter Bright
<newshound2 at digitalmars.com>:
> On 12/16/2011 2:55 PM, Walter Bright wrote:
>> For example, in std.datetime there's "final class Clock". It inherits
>> nothing,
>> and nothing can be derived from it. The comments for it say it is
>> merely a
>> namespace. It should be a struct.
>
> Or perhaps it should be in its own module.
When I first saw it I thought "That's how _Java_ goes about free
functions: Make it a class." :)
More information about the Digitalmars-d
mailing list