Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kevin1 opened this issue Dec 7, 2015 · 1 comment

Comments

@kevin1
Copy link
Collaborator

kevin1 commented Dec 7, 2015

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
Copy link
Collaborator Author

kevin1 commented Dec 7, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant