Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2018-12

STringlist: Randomization problem

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Franz Müller

Just thought of it again.

If we make the quicksort procedure virtual protected instead of private, it would be easy for anyone who needs it to derive a stringlist class in which quicksort makes the pivot choice without using the random routine. To avoid the performance penalty of the virtualization, the same trick as for the exchangeitems procedure could be used (though I doubt it would make a relevant difference).

Reply by email