Re: Assign to Array Column

2023-01-31 Thread Paul via Digitalmars-d-learn
On Wednesday, 1 February 2023 at 03:45:11 UTC, Salih Dincer wrote: On Tuesday, 31 January 2023 at 01:04:41 UTC, Paul wrote: Can I perform a similar assignment to the column? This, myArr[][0] = 5, doesn't work. Of course, this question has a short answer and a long answer. So the issue is

Re: Address of a class object

2023-01-31 Thread Paul via Digitalmars-d-learn
On Thursday, 5 January 2023 at 05:59:26 UTC, Ali Çehreli wrote: On 1/4/23 20:04, Paul wrote: >> (Again, there is no problem here; we are just learning.) >> Ali > > Do I have this much right? > ..with this output? Looks good to me. While we're here, you can force the class objects to be on the

Re: Assign to Array Column

2023-01-31 Thread Salih Dincer via Digitalmars-d-learn
Sorry, I forget this: ```d enum : size_t { ROW = 3, COL = 3, SUM = ROW * COL } ``` SDB@79

Re: Assign to Array Column

2023-01-31 Thread Salih Dincer via Digitalmars-d-learn
On Tuesday, 31 January 2023 at 01:04:41 UTC, Paul wrote: Can I perform a similar assignment to the column? This, myArr[][0] = 5, doesn't work. Of course, this question has a short answer and a long answer. So the issue is more about column-major. I am someone who likes to talk with codes.

Re: More Elegant Settable Methods?

2023-01-31 Thread jwatson-CO-edu via Digitalmars-d-learn
On Monday, 30 January 2023 at 07:48:09 UTC, Salih Dincer wrote: On Saturday, 21 January 2023 at 23:07:45 UTC, jwatson-CO-edu wrote: I am trying to create a struct with a settable method that has access to the struct scope. Is this the only way? Is there a way to give access without explicitly

Re: hasUDA alternatives?

2023-01-31 Thread Anonymouse via Digitalmars-d-learn
On Saturday, 28 January 2023 at 17:16:07 UTC, Hipreme wrote: [...] Thank you. I incorporated some of these ideas and looked up how to profile the compilation with tracy, and now dmd memory requirements are down to ~2100 Mb. It's still a far cry from your 250 Mb, however. I changed it to