01-02-2025, 12:27 AM
@Kernelpanic I somewhat disagree I think QB64 should have had entirely automatic memory management. We already partially have it, consider that variable length `String`s already get automatically allocated and cleaned up, it's not an issue. `_MEMNEW()` could have worked in a similar way - the memory could get cleaned up when there's no longer a way to access it, it just doesn't.
I do agree that a `_MEMFREE` command that frees every `_MEM` is a bad idea though. That's not a real memory management technique It's an approach that stops working past a certain program size.
I do agree that a `_MEMFREE` command that frees every `_MEM` is a bad idea though. That's not a real memory management technique It's an approach that stops working past a certain program size.