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

New {.experimental: "ForLoopMacros".} support #62

Merged
merged 2 commits into from
Aug 20, 2018

Conversation

mratsim
Copy link
Contributor

@mratsim mratsim commented Aug 17, 2018

This is an ugly fix to nim-lang/Nim#8676

2152937 was not enough to support the new {.experimental: "ForLoopMacros".} syntax introduced in nim-lang/Nim@da41fc1.

Unfortunately the new syntax is broken as {.experimental: "ForLoopMacros".} is needed everywhere a proc that calls the forLoop macros is used, including in test files, so it leaks implementation details

@mratsim
Copy link
Contributor Author

mratsim commented Aug 17, 2018

Due to generics early symbol resolution issue, see nim-lang/Nim#8677,

Either all modules (including Nimbus) that uses a comparison or bitwise operator add {.experimental: "ForLoopMacros".}

Or compilation must be done with the CLI flag --experimental:forLoopMacros

TODO: add that to stint nim.cfg

@mratsim mratsim merged commit fc27e86 into master Aug 20, 2018
@mratsim mratsim deleted the experimental-forLoopMacros branch September 7, 2020 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant