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

exception mentioned in language spec #6

Closed
PavelVozenilek opened this issue Oct 17, 2016 · 1 comment
Closed

exception mentioned in language spec #6

PavelVozenilek opened this issue Oct 17, 2016 · 1 comment

Comments

@PavelVozenilek
Copy link

PavelVozenilek commented Oct 17, 2016

The file language.an contains line:

arr -= 3 //Note: this will throw an exception if the array's size becomes < 0

What does it mean exception here? Application crash or something ala C++ with exception hierarchies and various levels of exception safety? This word is not mentioned anywhere else in the spec.

@jfecher
Copy link
Owner

jfecher commented Oct 17, 2016

In debug mode (the default), this will not throw a C++ exception, rather it will fail with a single error message. The bounds are checked beforehand to do this. In release mode (the only implemented mode so far), it will just crash. Sorry for the ambiguity.

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