Questions about the autofree feature #12343
Replies: 2 comments 1 reply
-
I am very curious about this as well. See also: #13588 |
Beta Was this translation helpful? Give feedback.
-
This has been changed to the following (https://github.com/vlang/v/blob/master/doc/docs.md). Most objects (~90-100%) are freed by V's autofree engine: the compiler inserts necessary free calls automatically during compilation. Remaining small percentage of objects is freed via reference counting. That Autofree would use reference counting for that last possible ~10% looks not only more doable, but wanted as well. Often the distinction between ARC and GC, is compile time versus runtime. GC (which appears to be doing well so far) would be a separate option for those that want it. Both GC and Autofree being available options, which are separate from each other, would arguably be the best case scenario for many. |
Beta Was this translation helpful? Give feedback.
-
I am new to the V Programming Language, and I read on the homepage of V, section "Innovative memory management":
I got some questions concering that:
Beta Was this translation helpful? Give feedback.
All reactions