lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: exit-hook never executed


From: Olivier Dion
Subject: Re: exit-hook never executed
Date: Fri, 30 Sep 2022 11:35:17 -0400

On Sun, 25 Sep 2022, Jean Abou Samra <jean@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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]