Program size, linking matter, and static this()
SeeWebsiteForEmail at erdani.org
Tue Dec 20 15:32:53 PST 2011
On 12/20/11 2:58 PM, Marco Leise wrote:
> 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
>>> 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." :)
Same here. If I had my way I'd rethink the name of those functions.
Having a cutesy prefix "Clock." is hardly justifiable.
More information about the Digitalmars-d