On Sun, 25 Sep 2022, Jean Abou Samra <j...@abou-samra.fr> wrote:

> It looks like Guile only uses exit-hook for (ice-9 readline), so it
> doesn't bother to call it when not running as REPL.

Right it looks like it.

> Maybe you could use a finalizer attached to a C global variable?
> (I didn't test.)

I don't think finalizer would be good enough since there's no guaranteed
that it's called?  I've opted for a syntax rule that expand into a
dynamic wind.


-- 
Olivier Dion
oldiob.dev

  • Re: exit-hook never executed Olivier Dion via LilyPond user discussion
    • Re: exit-hook never execute... Olivier Dion via LilyPond user discussion

Reply via email to