Re: Mixin programming foreach

2021-09-27 Thread eXodiquas via Digitalmars-d-learn
On Monday, 27 September 2021 at 17:14:11 UTC, Ali Çehreli wrote: [...] Woah, thanks everyone for the ridiculous precise and helpful answers I got here. This forum never disappoints. :P I now try to fully understand the answers and implement the solution to the problem in a cleaner way.

Re: Mixin programming foreach

2021-09-27 Thread Tejas via Digitalmars-d-learn
On Monday, 27 September 2021 at 17:43:22 UTC, Ali Çehreli wrote: On 9/27/21 10:26 AM, Tejas wrote: > On Monday, 27 September 2021 at 17:14:11 UTC, Ali Çehreli wrote: >> On 9/27/21 9:23 AM, eXodiquas wrote: >> >> > [...] >> >> Same here. :) >> >> > [...] >> >> Often repeated but there are no

Re: Mixin programming foreach

2021-09-27 Thread Ali Çehreli via Digitalmars-d-learn
On 9/27/21 10:26 AM, Tejas wrote: > On Monday, 27 September 2021 at 17:14:11 UTC, Ali Çehreli wrote: >> On 9/27/21 9:23 AM, eXodiquas wrote: >> >> > [...] >> >> Same here. :) >> >> > [...] >> >> Often repeated but there are no stupid questions. >> >> [...] > > Sometimes I wonder if I should

Re: Mixin programming foreach

2021-09-27 Thread Tejas via Digitalmars-d-learn
On Monday, 27 September 2021 at 17:14:11 UTC, Ali Çehreli wrote: On 9/27/21 9:23 AM, eXodiquas wrote: > [...] Same here. :) > [...] Often repeated but there are no stupid questions. [...] Sometimes I wonder if I should bother writing answers since one of you Old Guards make them

Re: Mixin programming foreach

2021-09-27 Thread Tejas via Digitalmars-d-learn
On Monday, 27 September 2021 at 16:23:50 UTC, eXodiquas wrote: Howdy ho everyone, I found this forum very helpful for my (maybe) stupid questions, so I give it a try again because I don't understand what's happening here. First of all, I'm not exactly sure what this code here, from the

Re: Mixin programming foreach

2021-09-27 Thread Ali Çehreli via Digitalmars-d-learn
On 9/27/21 9:23 AM, eXodiquas wrote: > I found this forum very helpful Same here. :) > for my (maybe) stupid questions Often repeated but there are no stupid questions. > First of all, I'm not exactly sure what this code here, from the > documentation at

Re: Mixin programming foreach

2021-09-27 Thread Dga123 via Digitalmars-d-learn
On Monday, 27 September 2021 at 16:59:16 UTC, eXodiquas wrote: But my last question still stands, how do I build functions that can work with those vectors because the type of those vectors is created at compile time. Here's another approach allowing to have a more obvious declaration name:

Re: Mixin programming foreach

2021-09-27 Thread eXodiquas via Digitalmars-d-learn
On Monday, 27 September 2021 at 16:49:15 UTC, Dga123 wrote: On Monday, 27 September 2021 at 16:23:50 UTC, eXodiquas wrote: Howdy ho everyone, I found this forum very helpful for my (maybe) stupid questions, so I give it a try again because I don't understand what's happening here. [...] But

Re: Mixin programming foreach

2021-09-27 Thread Dga123 via Digitalmars-d-learn
On Monday, 27 September 2021 at 16:23:50 UTC, eXodiquas wrote: Howdy ho everyone, I found this forum very helpful for my (maybe) stupid questions, so I give it a try again because I don't understand what's happening here. [...] But nevertheless, I copied the code and changed it a bit to

Mixin programming foreach

2021-09-27 Thread eXodiquas via Digitalmars-d-learn
Howdy ho everyone, I found this forum very helpful for my (maybe) stupid questions, so I give it a try again because I don't understand what's happening here. First of all, I'm not exactly sure what this code here, from the documentation at https://dlang.org/articles/mixin.html, does: