Re: Try/Catch
- Posted by mattlewis (admin) Jan 06, 2015
- 5766 views
In addition there will also be a new builtin, throw(atom code).
Why an atom and not an object? It could be useful to put lots of stuff in there.
Maybe for version 2. Can we not just get an int (full 32-bit) working first?
I have 63-bit integers. I don't need a 32-bit integer.
The call stack frame has a new machine-word-sized field, ehndlr. At startup, in the top-level...
Ugh...sorry, the implementation details lost me. Could you describe how all this would look to a euphoria programmer who knows nothing about the underlying implementation of euphoria?
OK, the same document with all the hidden back-end magic ripped out:
Thanks. That all sounds pretty reasonable. Though I still disagree on the argument for throw(). I think this should be fairly straightforward for interpreted code. Not sure how you get this in the translator.
Matt