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]

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

Re: Messing with OpenGL in D

2018-12-05 Thread Gheorghe Gabriel via Digitalmars-d-learn
On Wednesday, 5 December 2018 at 19:12:34 UTC, Nadir Chowdhury wrote: I'm fairly new to Dlang, but have learnt the basics. I wondered how I would be able to make an OpenGL-based Engine in D, what libraries would I need? Your help will be much appreciated! - NCPlayz I use BindBC-OpenGL for

Address problem

2017-10-24 Thread Gheorghe Gabriel via Digitalmars-d-learn
Hi, --- interface I { } I[string] i; class C : I { this() { i["s"] = this; foreach (_i; i) { writeln(&_i); } foreach (ref _i; i) { writeln(&_i); } } } void main() { C c =