On 2009-08-25 08:04:44 -0400, Daniel Keep <[email protected]> said:

You're assuming it's possible and practical to write every method that
is locale-dependant at once in a single class.

No, only the base methods. You can build on them to create other things. With a compare method you can do sorting according to various collations for instance, but the sorting algorithm doesn't need to be part of the locale, it just needs the locale as an argument.

I personally think that's somewhat unlikely...

Every attempt at defining locales in an operating system attemps to centralize the data at some place. That said, a Locale class should know it's locale name, which means in turn that by passing an instance of Locale to some function, that function can take the locale name and do its own thing.

--
Michel Fortin
[email protected]
http://michelf.com/

Reply via email to