Re: Is there such concept of a list in D?

2022-12-09 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/10/22 1:11 AM, thebluepandabear wrote: I was wondering more if there is an object oriented way of creating arrays, like in Java there is an `ArrayList`, in C++ there is `std::vector`, etc. In D, you just use `T[]` for an array, it's similar to `std::vector`. -Steve

Re: Is there such concept of a list in D?

2022-12-09 Thread thebluepandabear via Digitalmars-d-learn
On Saturday, 10 December 2022 at 05:54:09 UTC, Steven Schveighoffer wrote: On 12/10/22 12:46 AM, thebluepandabear wrote: In most languages there is some sort of `List` type, is that the same for D? D doesn't focus on interfaces, we have concepts, like ranges. Sorry, it's hard to answer your q

Re: Is there such concept of a list in D?

2022-12-09 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/10/22 12:46 AM, thebluepandabear wrote: In most languages there is some sort of `List` type, is that the same for D? D doesn't focus on interfaces, we have concepts, like ranges. Sorry, it's hard to answer your question without asking more questions: are you looking for a linked list? A

Is there such concept of a list in D?

2022-12-09 Thread thebluepandabear via Digitalmars-d-learn
In most languages there is some sort of `List` type, is that the same for D?

Re: Gotcha with photos' documentation

2022-12-09 Thread Christian Köstlin via Digitalmars-d-learn
On 09.12.22 19:55, H. S. Teoh wrote: On Fri, Dec 09, 2022 at 12:51:27PM +0100, Christian Köstlin via Digitalmars-d-learn wrote: On 09.12.22 02:27, H. S. Teoh wrote: [...] https://github.com/dlang/phobos/pull/8646 [...] Thanks a lot ... that was fast. It only took a minute to fix. :-D I

Re: Gotcha with photos' documentation

2022-12-09 Thread H. S. Teoh via Digitalmars-d-learn
On Fri, Dec 09, 2022 at 12:51:27PM +0100, Christian Köstlin via Digitalmars-d-learn wrote: > On 09.12.22 02:27, H. S. Teoh wrote: [...] > > https://github.com/dlang/phobos/pull/8646 [...] > Thanks a lot ... > that was fast. It only took a minute to fix. :-D > Is there also an implementation tha

Re: Gotcha with photos' documentation

2022-12-09 Thread Christian Köstlin via Digitalmars-d-learn
On 09.12.22 02:27, H. S. Teoh wrote: On Thu, Dec 08, 2022 at 05:21:52PM -0800, H. S. Teoh via Digitalmars-d-learn wrote: [...] I'll see if I can reword this to be more explicit. [...] https://github.com/dlang/phobos/pull/8646 T Thanks a lot ... that was fast. Is there also an implementat