|
|
|
|
|
by graphitemaster
4373 days ago
|
|
Correct, the problem is to call the function you cannot treat it as a standard function since it's pointing to a struct, the struct does contain the actual function pointer but there is an implicit `this' first argument to that function pointer which has to be that struct itself. This means you cannot use the block in an API that explicitly requires a function pointer, instead the API must specifically be aware of the block and would need to support it. |
|
But if you write your program to use blocks from the start, that's not a big problem.