Re: How should I move in a DList ?

2020-05-13 Thread Gabriel via Digitalmars-d-learn
On Wednesday, 13 May 2020 at 14:29:53 UTC, Steven Schveighoffer wrote: I would never recommend either DList or SList for actual linked lists (for stacks or queues, they are OK), as they are very unweildy and don't do what most people want linked lists to do. -Steve [1]

Re: How should I move in a DList ?

2020-05-13 Thread Steven Schveighoffer via Digitalmars-d-learn
On 5/13/20 5:57 AM, Gabriel wrote: Hello, As I am totally new to D (my background is mainly C++) I am having trouble porting an algorithm that simplifies a polyline in 2D, very similar to this one: http://psimpl.sourceforge.net/reumann-witkam.html Here is what I would like: 1) Use a

How should I move in a DList ?

2020-05-13 Thread Gabriel via Digitalmars-d-learn
Hello, As I am totally new to D (my background is mainly C++) I am having trouble porting an algorithm that simplifies a polyline in 2D, very similar to this one: http://psimpl.sourceforge.net/reumann-witkam.html Here is what I would like: 1) Use a doubly-linked list, preferably one from a