Turkish 'I's can't D either

Michel Fortin michel.fortin at michelf.com
Tue Aug 25 05:45:47 PDT 2009


On 2009-08-25 08:04:44 -0400, Daniel Keep <daniel.keep.lists at gmail.com> 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
michel.fortin at michelf.com
http://michelf.com/




More information about the Digitalmars-d mailing list