Re: ported a sortable list from my old C code

2018-10-13 Thread Steven Schveighoffer via Digitalmars-d-learn
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 b

Re: ported a sortable list from my old C code

2018-10-13 Thread Codifies via Digitalmars-d-learn
On Saturday, 13 October 2018 at 11:28:08 UTC, Alex wrote: Something is wrong with the link :( https://dpaste.dzfl.pl/af9e6f6ce53e

Re: ported a sortable list from my old C code

2018-10-13 Thread Codifies via Digitalmars-d-learn
On Saturday, 13 October 2018 at 11:28:08 UTC, Alex wrote: On Saturday, 13 October 2018 at 11:11:41 UTC, 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 ver

Re: ported a sortable list from my old C code

2018-10-13 Thread Stanislav Blinov via Digitalmars-d-learn
On Saturday, 13 October 2018 at 11:11:41 UTC, Codifies wrote: Does anyone has any ideas on improving this sortable list Yes. Use an array. No, really, use an array. Now, really, use an array. If reallocations while building your paths become a problem, you can write a deque (bucket array) or

Re: ported a sortable list from my old C code

2018-10-13 Thread Alex via Digitalmars-d-learn
On Saturday, 13 October 2018 at 11:11:41 UTC, 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