[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Fix error messages containing format strings
From: |
lloda |
Subject: |
Re: [PATCH] Fix error messages containing format strings |
Date: |
Fri, 26 Apr 2024 20:40:23 +0200 |
> On 23 Apr 2024, at 10:54, Michael Käppler <xmichael-k@web.de> wrote:
>
> Hi all,
> I recently posted a bug report together with a patch to bug-guile, but
> received no response at all:
>
> https://lists.gnu.org/archive/html/bug-guile/2024-04/msg00000.html
>
> I don't know what the preferred way of reporting bugs and proposing
> patches for Guile is, so
> I'm retrying here on guile-devel.
Hi Michael,
Thanks for looking at this. I think it might be cleaner to use something like
(define (error/args fmt . args)
(error (apply simple-format #f fmt args)))
instead of repeating the pattern every time.
On the other hand it's bad to add more definitions to (ice-9 boot) since
they're globally visible. Maybe someone else can suggest a better solution.
regards
Daniel