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

Reply via email to