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

Error on use of n-ary operators in space-invaders.rkt example #35

Closed
bakgatviooldoos opened this issue Sep 22, 2024 · 2 comments
Closed

Comments

@bakgatviooldoos
Copy link

I am trying out urlang for the first time, and the space invaders example does not work when using n-ary versions of operators, such as (<= x y z). Easy fix, although I thought I would mention it, since it might mean something changed since the program was first written (or perhaps I am just missing something).

soegaard added a commit that referenced this issue Sep 22, 2024
@soegaard
Copy link
Owner

Thanks for the error report.

At some point, long time ago, using <= with multiple arguments compiled to
valid, but non-sensical JavaScript. The form (<= 1 4 3) compiled
to 1 <= 4 <= 3. This is valid in JavaScript but evaluates to true...

This has since been corrected - but I missed that Space Invaders needed to be updated.

Thanks again - don't hesitate to write if you find other oddities.

The fix:
65de509

@bakgatviooldoos
Copy link
Author

Awesome, thanks!

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

No branches or pull requests

2 participants