[Top][All Lists]

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

[Chicken-hackers] [PATCH] Don't warn when namespaced symbols are unbound

From: Evan Hanson
Subject: [Chicken-hackers] [PATCH] Don't warn when namespaced symbols are unbound in eval
Date: Tue, 10 Jul 2018 22:16:58 +1200

Hello hackers,

Here's a small fix for a warning that should no longer be issued now
that import is allowed to be let-scoped.

It dispels the following message:

    #;1> (define (test x) (import (only srfi-1 any)) (any odd? x))
    ; loading /usr/local/lib/chicken/9/ ...
    Note: the following toplevel variables are referenced but unbound:
      srfi-1#any (in test)

We can skip this warning for namespaced variables, since the presence of
a namespace means that either (1) `import' has already handled renaming
the variable and the binding will be loaded when the code path is
executed, or (2) the user has manually prefixed the symbol, in which
case we should assume know what they're doing and leave them alone.



Attachment: 0001-Dont-warn-when-namespaced-symbols-are-unbound-in-eval.patch
Description: Text Data

reply via email to

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