Microservices
The essence of the Block object
What is a block The bottom layer of the block is an OC object, which encapsulates function calls and the calling environment, and has an isa pointer inside Source code ^{ int a = 10; a = 20; }; After oc code is converted to c++ code, it is roughly like this // block , isa struct __block_impl { // isa block oc void *isa; int Flags; int Reserved; // void *FuncPtr; }; // block struct __main_block_impl_0 { struct __block_impl impl; struct __main_block_desc_0* Desc; __main_block_impl_0(void *fp, stru