Turkish 'I's can't D either
Daniel Keep
daniel.keep.lists at gmail.com
Tue Aug 25 05:04:44 PDT 2009
Michel Fortin wrote:
> ...
>
> What I'd like to see is an a base class representing a locale. Then you
> can instanciate the locale you want (from a config file, by coding it
> directly, having bindings to system APIs, or a mix of all this) and use
> the locale. Something like:
>
> class Locale
> {
> immutable:
> string lowercase(string s);
> string uppercase(string s);
>
> int compare(string a, string b);
> int compare(string a, string b);
>
> // number & date formatting, etc.
> }
>
> ...
>
> This way you can work with many locales at once. And there's no reliance
> on a global state.
You're assuming it's possible and practical to write every method that
is locale-dependant at once in a single class.
I personally think that's somewhat unlikely...
More information about the Digitalmars-d
mailing list