define-generic and define-method creates global bindings in scope
Issue #193
resolved
This should be &undefined
(import (clos user))
(let ()
(define-generic foo))
foo
Comments (2)
-
reporter -
reporter - changed status to resolved
Adding local variable check for generic functions (Fixes
#193)→ <<cset 9328bdaa9fd7>>
- Log in to comment
The culprit is
%ensure-generic-function
procedure. The procedure creates a generic function in passed library. This is needed to make generic function implicitly (and unfortunately, there's a library depending on this behviour).What we can do without removing implicit generation is that adding macro environment check. If the environment is not toplevel, then we don't have to make implicitly.