Hi,

Andy Wingo <wi...@pobox.com> 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’.

Reply via email to