std.locale

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Mar 2 17:02:20 PST 2009


Christopher Wright wrote:
> Andrei Alexandrescu wrote:
>> If you want to provide a specific date formatter, you plant a delegate 
>> in the locale table. The code in Phobos doing formatting will detect 
>> that and call your delegate passing in the date. You do whatever you 
>> want on your side (format on the spot, use your own class hierarchy etc.)
>>
>> Again: mechanism only. Not policy.
>>
>>
>> Andrei
> 
> Weak typing for the win!

Yes. Sometimes it's exactly what the doctor prescribed, as I believe is 
in this case.

Andrei



More information about the Digitalmars-d mailing list