Open michaellilltokiwa opened 2 months ago
With anything as simple as setting an option -safety=off
, I would prefer not to create a message stating that there is a compiler bug. This is just asking for trouble.
Showing panic
when using -effects
is not nice (and happens currently anyways due to panic
being used in
$MODULE/effect.fz:143:5:
instate R e code (panic "unexpected abort in {effect.this.type}")
for a mutate effect where this panic should be unreachable. We have to do both, improve the DFA to not show panic in dead code and use fuzion.std.panic
where this is not possible.
Some of these use
panic
, others call to thefuzion.std.panic
intrinsic. I tried to switch the latter over to usepanic
a while ago, but @fridis did not want like this because that meant any calls to these features showed up as using thepanic
effect withfz -effects
. It might be nice to switch these over to a panic effect with a severe-compiler-bug-found panic handler. Then we could have a message like:(could even switch the message to show "turned off safety" only when
!safety
).Originally posted by @maxteufel in https://github.com/tokiwa-software/fuzion/pull/3564#pullrequestreview-2246990282