edwadli / note-hashtag

3 stars 0 forks source link

Codegen: Use blocks (compound statements) instead of lambdas when retval is needed #121

Open kevin1 opened 8 years ago

kevin1 commented 8 years ago

Instead of using lambdas -- this will make generated code easier to understand. However, it's also a GCC/Clang extension.

cvlu2vau4aef93o png-large

Docs: Statement Exprs in GCC docs

Source: @smileyborg on twitter https://twitter.com/smileyborg/status/673691506729811969

kevin1 commented 8 years ago

Note: this will mean we can't run on Windows unless they are using Visual Studio's experimental Clang frontend.

MS VC++:

screen shot 2015-12-06 at 10 55 15 pm

Clang:

screen shot 2015-12-06 at 11 00 38 pm