> You can also try --exceptions:quirky.

I get the same error as with setjmp

`lib\system\excpt.nim(585, 12) Error: only a 'ref object' can be raised`

Nim should look into if there is some way to unify exception handling with C 
and C++ and without relying on a library solution. In the language world, 
exceptions are on the way out meaning how it is implemented under the hood. 
Rust rejected exceptions if favor of return values but kind of stale design. 
Swift took the same idea and implemented it right using static type info. Herb 
Sutter made his famous proposal for value type "exceptions" (which are return 
values underneath). D are talking about adding value type exceptions. It would 
be nice if Nim had a similar solution for their native exceptions, not relying 
on C++ exceptions.

BTW. Doesn't C and C++ share the same problem with variable initialization 
bypass with goto? 

Reply via email to