-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
It is important to copy your block to the heap (with the copy method) before passing it to Objective-C; this is because our ConcreteBlock is only meant to be copied once, and we can enforce this in Rust, but if Objective-C code were to copy it twice we could have a double free.
This is really unfortunate and error prone. It would be great to leverage the type system to do this automatically for us or at least enforce safety at compile time.
steven-joruk
Metadata
Metadata
Assignees
Labels
No labels