Skip to content

Boolean Expression Evaluations #34

Answered by ethanblake4
fakalit asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @fakalit !

Thanks for the report. I've created issue #38, #39, and #40 to cover these cases and I'll fix them shortly.

For the second issue (2 > 1) you should be able to get around it for now by doing eval("bool main() { return 2 > 1; }"). By specifying the function's return type (instead of letting it to default to dynamic) the compiler will leave the return value unboxed which should allow this to succeed. Of course, that should not be required and I will fix it.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by fakalit
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants