omni
omni copied to clipboard
gc:arc?
https://github.com/nim-lang/RFCs/issues/177
Following this discussion, for old behaviour, code should be compiled with --gc:arc --exceptions:setjmp --panics:on
Specifying rasises: []
on a proc should also get rid of the branching introduced by exceptions:goto
when calling that proc.
I am not sure I understand the meaning. Do you mean that, if I specify raises:
on a proc, the goto
exceptions handler won't introduce any branching, since it sees that the proc can already raise specific things?
Yeah, if you specify raises: []
then the compiler will see that it can't raise, and thus won't introduce branching (with --panics:on
that is).
Aaah, I see. Thanks! I'll keep it in mind :)