How to "dispose of" a string when using @live analysis?
IchorDev
zxinsworld at gmail.com
Sun Aug 31 11:41:19 UTC 2025
On Saturday, 30 August 2025 at 21:00:11 UTC, Dukc wrote:
> Functions like `free` or `leak` take the parameter as
> non-`scope`, making sure you call them once and only once per
> variable you have allocated.
It really should not require this for memory that is
GC-allocated. How would you even free immutable data without a
garbage collector? You'd have to be sure nothing references it,
otherwise it's not-so-immutable.
More information about the Digitalmars-d-learn
mailing list