ported a sortable list from my old C code

Steven Schveighoffer schveiguy at gmail.com
Sun Oct 14 00:55:12 UTC 2018


On 10/13/18 7:11 AM, Codifies wrote:
> https://run.dlang.io/gist/b8b03ce3246951b5356db064ab68b22e
> 
> its a bit fugly at the moment and I want to use something other than a 
> void pointer (any?) (the whole thing was very pointer centric as 
> everything was malloc'd...)
> 
> I'm not entirely sure it would benefit from turning into a class ?
> 
> Does anyone has any ideas on improving this sortable list

Yes, use mergesort instead of bubble sort. As I said, I will attempt to 
add sorting to Phobos for slist and dlist.

-Steve


More information about the Digitalmars-d-learn mailing list