Proposal for custom time string formatting in std.datetime
Walter Bright
newshound2 at digitalmars.com
Thu Dec 22 10:32:05 PST 2011
On 12/22/2011 9:22 AM, Jacob Carlborg wrote:
> On 2011-12-22 16:56, Michel Fortin wrote:
>> The benefit of referencing classes within module info: you can
>> instantiate them using Object.factory, if they have a default
>> constructor. We pay a heavy price compared to what we get with this very
>> limited runtime reflection.
>
> It's a really nice feature to have when implementing serialization.
Sure, but we need to be aware of class overhead, and not use classes unless
necessary. I.e. a class shouldn't be used to merely create a namespace. Classes
also should not be used if it is not intended to be a polymorphic type.
More information about the Digitalmars-d
mailing list