My tiny but useful trace debugging code... Any suggestions from more experienced D users?

2025-06-26 Thread WraithGlade via Digitalmars-d-learn
A while back (perhaps my first D forum post) I asked about implementing an equivalent of other languages' very useful debug printing macros such as Julia's `@show` or Nim's `dump` or Rust's `dbg!`. Someone on the forum here very helpfully showed me how to do it via D's `mixin` feature. I have s

Re: How can I signal a master object that a resource handle is no longer used, from within the resource class's destructor?

2025-06-26 Thread Steven Schveighoffer via Digitalmars-d-learn
On Tuesday, 24 June 2025 at 08:48:16 UTC, realhet wrote: This is working in a normal use case: I create a Texture class insance, I store it's pointer and later when I press a key, I release the class pointer. But when I do not store the class pointer: `new Texture(...);` It just enters into

Re: Guidance on how to contribute to D lang for GSOC 2025?

2025-06-26 Thread Sophia2005 via Digitalmars-d-learn
On Saturday, 5 April 2025 at 13:52:05 UTC, user1234 wrote: On Saturday, 5 April 2025 at 07:48:27 UTC, Aditya Vir wrote: Hello everyone, I am Aditya, a computer science undergrad from India. I want to push my application to D lang for this year's Google summer of Code. I seek tips and advice re

Re: Should I worry about this hashOf warning ?

2025-06-26 Thread axricard via Digitalmars-d-learn
On Thursday, 26 June 2025 at 03:55:03 UTC, Jonathan M Davis wrote: [...] Thanks for these wonderful explanations ! A const @safe nothrow toHash indeed solved this.