-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Nim check hangs in macro #9829
Labels
Comments
@Araq Why the crash label, this is not a crash.
A macro is evaluated at compile time. And you created an infinite loop (which runs at compile time). So the compilation nevers completes. Also the issue is not specific to |
The VM doesn't have infinite loops, an infinite loop is a crash. |
krux02
added a commit
to krux02/Nim
that referenced
this issue
Jul 29, 2019
Merged
krux02
added a commit
to krux02/Nim
that referenced
this issue
Jul 30, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nim check hangs in macro. Don't know what exactly caused this.
Example
Content of
bug.nim
:Current Output
The program hangs in
Hint: bug [Processing]
until aSIGINT
.Expected Output
I know there's a infinite loop, but I've seen:
before in a simpler case. That's a lot nicer (and very cool!).
Possible Solution
Donno.
Additional Information
Thank you in advance.
The text was updated successfully, but these errors were encountered: