[fpc-devel] Stringlist customsort

Michael Van Canneyt michael at freepascal.org
Sat Dec 1 09:09:30 CET 2018



On Fri, 30 Nov 2018, Franz Müller wrote:

> Do not forget that TStringlist is just a possible implementation of
> TStrings. You are free to create your own. For example, the inifiles unit has 
> a
> specialized version which is optimized for containing name=value pairs.
>
> Of course, everyone can create his own basic classes for everything, but I 
> think that is not how high level programming is supposed to work. The 
> improvement that I propose is 100% compatible with current code, if you don' 
> t need the feature (which will be the case most of the time), you just don't 
> use it, but if you need this added flexibility, it is there. The 
> implementation is very simple and no complexity is added for programmers who 
> don't need the feature.

That sounds as if you have an implementation ready ?
If so, please submit a patch to the bugtracker. I'll evaluate it and if it
is indeed simple, as you claim, I will apply the patch.

Michael.


More information about the fpc-devel mailing list