cgen: rewrite the closure implementation (#14223)

This commit is contained in:
spaceface 2022-04-30 08:32:46 +02:00 committed by GitHub
parent ce31a01a70
commit dab649ec8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 243 additions and 219 deletions

View file

@ -4,7 +4,6 @@ import sync
// it uses an explicit passing of the voidptr parameter in
// once.do_with_param/2, instead of passing a closure of it
// in once.do/1.
// Closures are not yet implemented on Windows.
struct One {
pub mut: