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:
@ -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.
|
||||
|
Reference in New Issue
Block a user