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:goto switch for deterministic exception handling #12977

Merged
merged 28 commits into from
Jan 1, 2020
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
c49eb88
refactoring: added --exception switch for more structure
Araq Dec 27, 2019
4963fe6
first, non-working implementation of 'goto based' exceptions
Araq Dec 27, 2019
a8dbb07
exception handling: refactorings
Araq Dec 28, 2019
7de7a04
progress
Araq Dec 28, 2019
2bafb0e
progress
Araq Dec 28, 2019
f6d94fd
improve readability of test and optimize away try..finally
Araq Dec 28, 2019
200523f
bugfixes
Araq Dec 28, 2019
9af34c7
now it almost works
Araq Dec 28, 2019
d8684d6
wip
Araq Dec 29, 2019
93c41da
fixes a regression
Araq Dec 29, 2019
1a75ccb
better fix for re-raise
Araq Dec 29, 2019
7f6bb9d
exception handling: raiseCounter is only required for C++'s exception…
Araq Dec 29, 2019
65db4e3
make tgotoexceptions green; requires complex error counting logic, th…
Araq Dec 29, 2019
b48ac9f
optimize try statements further
Araq Dec 29, 2019
9107d75
fixes a regression
Araq Dec 29, 2019
d125705
make --exceptions:goto the default for --gc:arc to see what it breaks
Araq Dec 29, 2019
27153dc
bugfixes
Araq Dec 30, 2019
d4f1826
goto exceptions: trap on index errors, overflows etc
Araq Dec 30, 2019
995d57a
updated test
Araq Dec 30, 2019
daef4e8
newlines are nice
Araq Dec 30, 2019
258335b
even fatal runtime errors are better with stack traces
Araq Dec 31, 2019
bf85ee4
and once again...
Araq Dec 31, 2019
ae467e8
sigh
Araq Dec 31, 2019
b1fd3c7
progress
Araq Dec 31, 2019
8a6d2c1
expand the test case
Araq Dec 31, 2019
f2a669f
progress
Araq Jan 1, 2020
ec1425a
adapted test so that it makes sense
Araq Jan 1, 2020
75a5e85
further simplifications
Araq Jan 1, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
updated test
Araq committed Dec 30, 2019
commit 995d57aaaa40e3794105b5ba0fa3360e7acfda8d
2 changes: 1 addition & 1 deletion tests/assert/tassert_c.nim
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ tassert_c.nim(35) tassert_c
tassert_c.nim(34) foo
assertions.nim(27) failedAssertImpl
assertions.nim(20) raiseAssert
fatal.nim(39) sysFatal"""
fatal.nim(54) sysFatal"""

proc tmatch(x, p: string): bool =
var i = 0