Re: printf, writeln, writefln

2022-12-10 Thread Nick Treleaven via Digitalmars-d-learn
On Thursday, 8 December 2022 at 17:39:58 UTC, Ali Çehreli wrote: On 12/8/22 08:21, Salih Dincer wrote: > void stringCopy(Chars)(string source, > ref Chars target) >sample.stringCopy = cTxt; // disappeared ? char Nothing disappeared on my system. (?) Going off-topic,

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

2022-12-10 Thread Salih Dincer via Digitalmars-d-learn
On Saturday, 10 December 2022 at 05:46:26 UTC, thebluepandabear wrote: In most languages there is some sort of `List` type, is that the same for D? The standard library has many possibilities, including linked lists. What about the news from the range... In D, the concept of range is very

Advent of Code 2022

2022-12-10 Thread Christian Köstlin via Digitalmars-d-learn
Is anybody participating with dlang in the advent of code 22? It would be interesting to discuss dlang specific things from the puzzles. Kind regards, Christian

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

2022-12-10 Thread Ali Çehreli via Digitalmars-d-learn
On 12/9/22 22:11, thebluepandabear wrote: > I was wondering more if there is an object oriented way of creating > arrays, Every collection has its own special interface. Object orientation don't go well with collections. For example, you wouldn't want indexing operator for a linked list. >

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

2022-12-10 Thread zjh via Digitalmars-d-learn
On Saturday, 10 December 2022 at 19:49:23 UTC, Salih Dincer wrote: SDB@79 Can the `range` be partially traversed? That is, suppose we only access the `[3,5)` elements?

Re: Advent of Code 2022

2022-12-10 Thread Steven Schveighoffer via Digitalmars-d-learn
On Saturday, 10 December 2022 at 20:49:03 UTC, Christian Köstlin wrote: Is anybody participating with dlang in the advent of code 22? It would be interesting to discuss dlang specific things from the puzzles. Mine: https://github.com/schveiguy/adventofcode -Steve

Re: Advent of Code 2022

2022-12-10 Thread Sergey via Digitalmars-d-learn
On Saturday, 10 December 2022 at 20:49:03 UTC, Christian Köstlin wrote: Is anybody participating with dlang in the advent of code 22? It would be interesting to discuss dlang specific things from the puzzles. Kind regards, Christian

Re: arsd.jni

2022-12-10 Thread jni via Digitalmars-d-learn
On Saturday, 10 December 2022 at 22:53:14 UTC, jni wrote: Friends, I have decided to use D lang to link with the Android NDK. I can make an app that can use the android platform's functions and the android site says they are available in C for linux and windows! Making apps in android studio

Why can't rvalues be passed to a 'ref' parameter?

2022-12-10 Thread thebluepandabear via Digitalmars-d-learn
Hello, I am not really understanding why rvalues cannot be passed to a 'ref' parameter, the explanation in the book about D I am reading was not clear: "The main reason for this limitation is the fact that a function taking a ref parameter can hold on to that reference for later use, at a

Graphical progressive fill

2022-12-10 Thread Joel via Digitalmars-d-learn
I've been trying to fill in areas with a colour but can't work it out. I want something like the effect where it fills with diamonds. Not all at once but building up in the main program loop. # # # # # # # # # # #

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

2022-12-10 Thread Salih Dincer via Digitalmars-d-learn
On Sunday, 11 December 2022 at 03:13:17 UTC, zjh wrote: On Saturday, 10 December 2022 at 19:49:23 UTC, Salih Dincer wrote: SDB@79 Can the `range` be partially traversed? That is, suppose we only access the `[3,5)` elements? Certainly, there are many ways to do this. For example: ```d