Re: Confirm: D escapes auto ref similar to Go language

2025-08-25 Thread user1234 via Digitalmars-d-learn
On Monday, 25 August 2025 at 12:59:58 UTC, Brother Bill wrote: On Monday, 25 August 2025 at 12:57:01 UTC, Steven Schveighoffer wrote: On Monday, 25 August 2025 at 08:36:05 UTC, Nick Treleaven wrote: On Monday, 25 August 2025 at 00:42:33 UTC, Steven Schveighoffer wrote: Still, the op code comp

Re: Confirm: D escapes auto ref similar to Go language

2025-08-25 Thread Steven Schveighoffer via Digitalmars-d-learn
On Monday, 25 August 2025 at 08:36:05 UTC, Nick Treleaven wrote: On Monday, 25 August 2025 at 00:42:33 UTC, Steven Schveighoffer wrote: On Sunday, 24 August 2025 at 20:43:15 UTC, Ali Çehreli wrote: I think you went a little further in that section and made the return 'auto ref', which does not

Re: Confirm: D escapes auto ref similar to Go language

2025-08-25 Thread Brother Bill via Digitalmars-d-learn
On Monday, 25 August 2025 at 12:57:01 UTC, Steven Schveighoffer wrote: On Monday, 25 August 2025 at 08:36:05 UTC, Nick Treleaven wrote: On Monday, 25 August 2025 at 00:42:33 UTC, Steven Schveighoffer wrote: Still, the op code compiling is a bug as the return value is not an rvalue. -Steve

Re: Is there any tutorial on how to use the shared attribute on structs

2025-08-25 Thread IchorDev via Digitalmars-d-learn
On Sunday, 17 August 2025 at 21:00:32 UTC, solidstate1991 wrote: I created a nogc array handler struct, and I would like to use it as a shared array. I can only easily find anything related to it for simple built-in types, let alone for slices. If at least I could use slices directly, it woul

Re: Confirm: D escapes auto ref similar to Go language

2025-08-25 Thread Nick Treleaven via Digitalmars-d-learn
On Monday, 25 August 2025 at 00:42:33 UTC, Steven Schveighoffer wrote: On Sunday, 24 August 2025 at 20:43:15 UTC, Ali Çehreli wrote: I think you went a little further in that section and made the return 'auto ref', which does not (and should not) fail compilation. No. auto ref is only for te

Re: Confirm: D escapes auto ref similar to Go language

2025-08-25 Thread Paolo Invernizzi via Digitalmars-d-learn
On Sunday, 24 August 2025 at 18:29:12 UTC, Brother Bill wrote: On Sunday, 24 August 2025 at 17:30:33 UTC, Ali Çehreli wrote: [...] [...] Ali, may I have a Yes or No on permission to use your Programming in D examples that I am expanding for a commercial Udemy course that I will build. Of