[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.5-68-gda
From: |
Ludovic Courtès |
Subject: |
Re: [Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.5-68-gdab48cc |
Date: |
Wed, 21 Mar 2012 22:16:45 +0100 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.93 (gnu/linux) |
Hi,
Andy Wingo <address@hidden> skribis:
> That's the mechanism. But we should talk policy. This should probably
> not emit a warning:
>
> (begin
> (define _ gettext)
> (format #t (_ "foo")))
>
> And this should:
>
> (begin
> (define _ not-gettext)
> (format #t (_ "foo")))
>
> But the problem is we can't tell them apart. So we have to choose
> between emitting an incorrect warning and not emitting a correct
> warning. We should do the latter, no?
We should really keep a list of local top-level defines, like
‘unused-toplevel’ does, and use that to determine whether ‘_’ is an
alias for ‘gettext’ or not.
Thanks,
Ludo’.