☰
Panic_Handler
Panic_Handler
Panic_Handler -- abstract panic
Functions
§use(R type, code Function Panic_Handler.use.R, def Function Panic_Handler.use.R) => Panic_Handler.use.R:Any
§use(R
type
, code Function Panic_Handler.use.R, def Function Panic_Handler.use.R) =>
Panic_Handler.use.R:
Any Install this panic handler using a new instance of panic and run
`code` on it. In case of an abort, return `def()` (NYI: def should be
removed and the result of do_panic should be returned instead).
`code` on it. In case of an abort, return `def()` (NYI: def should be
removed and the result of do_panic should be returned instead).
panic with the given message
NYI: The result of do_panic should be returned by `use`, but there is
currently no way we could do this. One way would be to add a local
variable of type `Any` to `panic` and store the result there and then
cast it to the correct type in `use` (see
https://fuzion-lang.dev/design/type_casts_ref)
NYI: The result of do_panic should be returned by `use`, but there is
currently no way we could do this. One way would be to add a local
variable of type `Any` to `panic` and store the result there and then
cast it to the correct type in `use` (see
https://fuzion-lang.dev/design/type_casts_ref)