Comment Comment by zamberzand This is not quite true. The claims about autofree made in the article are still extremely relevant.For example, the following code from the article still leaks with autofree: [heap] struct MyHeapValue { value i64 } fn draw_text(value MyHeapValue) { } fn main() { // ... arg1 := MyHeapValue { 42 } arg2 := MyHeapValue { 100 } draw_text(arg1) draw_text(arg2) // ... } What's more, it leaks even if we completely remove the calls to draw_text and the function definition for draw_text. parent zamberzand 3 years ago
For example, the following code from the article still leaks with autofree:
What's more, it leaks even if we completely remove the calls to draw_text and the function definition for draw_text.