E.g, we have
typedef id(^func)(id);
func read_file = ^(NSString *path_to_file) {
return [NSString stringWithContentsOfFile:path_to_file encoding:NSUTF8StringEncoding error:NULL];
};
I wonder how can we get the name of this block if I passed it as a parameter in some function call? E.g,
fileOperator(read_file); // I want to print the block's name in this function.
Thank you.