1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

gen: implement a [manualfree] tag, for functions, that want to do their own memory management

This commit is contained in:
Delyan Angelov
2021-01-08 14:56:55 +02:00
parent 06bcd404b0
commit 083dc23db8
10 changed files with 77 additions and 53 deletions

View File

@ -2517,7 +2517,8 @@ Python, Go, or Java, except there's no heavy GC tracing everything or expensive
each object.
For developers willing to have more low level control, autofree can be disabled with
`-noautofree`.
`-manualfree`, or by adding a `[manualfree]` on each function that wants manage its
memory manually.
Note: right now autofree is hidden behind the -autofree flag. It will be enabled by
default in V 0.3.