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

Result of if, when condition is false, is arbitrary #321

Closed
meijeru opened this issue Nov 29, 2012 · 1 comment
Closed

Result of if, when condition is false, is arbitrary #321

meijeru opened this issue Nov 29, 2012 · 1 comment
Labels
status.built A change in codebase has been done to address the ticket. status.tested The change in code has been manually tested and verified to fix the issue. type.bug Ticket describes an abnormal behavior, not conforming to the specs or expectation.
Milestone

Comments

@meijeru
Copy link
Contributor

meijeru commented Nov 29, 2012

Try print type? if false [1] ; this is logic!
Try print 1 + if false [2] ; this is 41 on my computer

I would guess that something is not set here. What does the language definition say? Should if false [anything] be none? It is in REBOL.

@dockimbel
Copy link
Member

Red should return none too in such case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status.built A change in codebase has been done to address the ticket. status.tested The change in code has been manually tested and verified to fix the issue. type.bug Ticket describes an abnormal behavior, not conforming to the specs or expectation.
Projects
None yet
Development

No branches or pull requests

2 participants