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

doc: closures now work on Windows

This commit is contained in:
Alexander Medvednikov 2022-05-07 09:49:33 +03:00 committed by GitHub
parent 89c1e7f980
commit 9fb8de14dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2422,8 +2422,7 @@ V supports closures too.
This means that anonymous functions can inherit variables from the scope they were created in. 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. They must do so explicitly by listing all variables that are inherited.
> Warning: currently works on Unix-based, x64 architectures only. > Warning: currently works on x64 architectures only.
Some work is in progress to make closures work on Windows, then other architectures.
```v oksyntax ```v oksyntax
my_int := 1 my_int := 1