3 ms·
You can do this in C++, too, but the syntax is a little uglier.
by a_t48 2y ago
You can do this in C++, too, but the syntax is a little uglier.
- kllrnohj 2y agoNot that bad? int main() { int a = -1; [&] { a = 42; printf("I'm an uncallable inline block"); }(); printf(" "); [&] { printf("of code\n"); }(); [&] { printf("Passing state: %d\n", a); }(); return 0; }