GNU bug report logs -
#29520
peval leaves behind dangling lexical reference
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Consider the code at the end of this post. un-commenting f-scope reveals
the compiler error:
;;; ERROR: unbound lexical #<tree-il (lexical x #{x 190}#)>
But without it the globalified versoin f-scope2 comiles just fine
indicating an error in the compiler.
Regards
Stefan
(define-syntax-rule (<p-lambda> (c) code ...) (lambda (a b cc d c) code
...))
(define-syntax ..
(syntax-rules ()
((.. (f a ...)) (f x y z a ...))
((.. (s ...) (f a ...))
(f x y z a ...))))
#;
(define (f-scope f)
(define (g f x3)
(define (h x2 n m)
(lambda xx (apply (f-skip n m) x2)))
(<p-lambda> (c)
(.. (c2) (f c))
(let ((n N) (m M))
(.. ((h x3 n m) c2)))))
(lambda x (apply (g f x) x)))
(define (h x2 n m)
(lambda xx (apply (f-skip n m) x2)))
(define (g f x3)
(<p-lambda> (c)
(.. (c2) (f c))
(let ((n N) (m M))
(.. ((h x3 n m) c2)))))
(define (f-scope2 f)
(lambda x (apply (g f x) x)))
[Message part 2 (text/html, inline)]
This bug report was last modified 7 years and 132 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.