-
Notifications
You must be signed in to change notification settings - Fork 12
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
Invalid primitives #27
Comments
Why is this surprising? There is also the practical reason of implementing a language completely: you want the warning, but you don't want to be blocked by irrelevant bits. |
But, it's inconsistent among different SOMs. CSOM errors. SOM and SOM++ give warnings. |
Note there are two warnings in the example I gave: a compile-time warning and a run-time warning. I can see an argument for the compile-time warning being a warning (though I think it should be an error) but I can't see any real argument for the run-time warning being a warning (turning it into a no-op seems the worst of all worlds to me!). |
Sorry, didn't read correctly. Looking at the code: "this has always been like this" as far as I can tell. But yes, not ideal. |
At least in Java SOM, calling an unknown primitive causes a warning to be printed, but execution to continue -- which, to me, feels surprising! Should it not immediately cause a fatal error?
The text was updated successfully, but these errors were encountered: