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

gen: make the closure implementation more performant (#14352)

This commit is contained in:
spaceface
2022-05-11 23:05:14 +02:00
committed by GitHub
parent c19b037880
commit 49382f1f43
3 changed files with 35 additions and 167 deletions

View File

@@ -2422,8 +2422,6 @@ V supports closures too.
This means that anonymous functions can inherit variables from the scope they were created in.
They must do so explicitly by listing all variables that are inherited.
> Warning: currently works on x64 and arm64 architectures only.
```v oksyntax
my_int := 1
my_closure := fn [my_int] () {