[prev in list] [next in list] [prev in thread] [next in thread]
List: lilypond-user
Subject: Re: exit-hook never executed
From: Jean Abou Samra <jean () abou-samra ! fr>
Date: 2022-09-30 15:48:18
Message-ID: 510DBF8E-B96C-4E5E-8051-1C102B2F3AEE () abou-samra ! fr
[Download RAW message or body]
Oh dear, I sent my reply to the wrong list and now we're discussing on lilypond-user instead of guile-user. Sorry LilyPond folks, this was not for this list. Forwarding to guile-user, please remove lilypond-user when replying.
> Le 30 sept. 2022 à 17:35, Olivier Dion <olivier.dion@polymtl.ca> a écrit :
>
> 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.
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic