bachmeier kirjoitti 14.6.2024 klo 16.48:
See the example I posted elsewhere in this thread: https://forum.dlang.org/post/mwerxaolbkuxlgfep...@forum.dlang.orgI defined ``` @nogc ~this() { free(ptr); printf("Data has been freed\n"); } ``` and that gets called when the reference count hits zero.
Oh sorry, missed that.