Which modern compilers support the Gnu Statement expression (C and C++ languages). What versions should I have to use a statement expressions?
Statement expression is smth like ({ code; code; retval })
:
int b=56;
int c= ({int a; a=sin(b); a})
I already know some such compilers:
This compiler seems not to support this (i'm unsure):
PS. some C/C++ compilers are listed here but I interested only in mature compilers, that are used widely (e.g not a tcc or turbo c)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…