IOS The name of this method of constructing and returning an object in Objective-C

I'm trying to figure out what is called this coding style, is it an inline block? embedded area? what? What will the compiler create when it encounters one of them ...

- (UIView *)createMyView {
      return
        ({
           UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 0)];
            /* set some stuff up on the view;
   */     
           view;

        });
}

I ask because we get a lot of cxx_destruct calls in the crash log with line numbers that are much larger than the actual file size. I am wondering if this coding method adds some strange things to how it was built.

+3
source share
1 answer

This is an “expression expression” which is a function of GCC (also understood by the Clan) see http://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html :

, , GNU C. , .

- .

+4