Re: [Chicken-users] my errors with eval

2013-07-02 Thread Jim Ursetto
You can't access internal defines in an eval, just as you can't access the lexical variable "a". To get around this you could use set! instead to "define" the variables at toplevel. (let ((a 1)) (set! inc (lambda () (set! a (+ 1 a)) (print a))) (set! runTwice (lambda (op) (op) (op))) (eval '

Re: [Chicken-users] with-output-to-file broken in 4.8.0.3

2013-07-02 Thread Aleksej Saushev
Mario Domenech Goulart writes: > On Tue, 02 Jul 2013 21:56:01 +0400 Aleksej Saushev wrote: > >> ??? > > with-output-to-file expects a thunk as second argument. Hm... Alright. Stupid Scheme. -- BCE HA MOPE! ___ Chicken-users mailing list Chicken-us

[Chicken-users] my errors with eval

2013-07-02 Thread Daniel Ajoy
Hi, Both this (let ((a 1) ) (define (inc) (set! a (+ 1 a ) ) ) (define (runTwice op ) (op) (op) ) (eval '(runTwice inc ) ) ) and this (let* ((a 1) ) (define (inc) (set! a (+ 1 a ) ) ) (define (runTwice op ) (op) (op) ) (eval '(runTw

Re: [Chicken-users] with-output-to-file broken in 4.8.0.3

2013-07-02 Thread Mario Domenech Goulart
On Tue, 02 Jul 2013 21:56:01 +0400 Aleksej Saushev wrote: > $ csi > > CHICKEN > (c) 2008-2013, The Chicken Team > (c) 2000-2007, Felix L. Winkelmann > Version 4.8.0.3 (stability/4.8.0) (rev 091c3d9) > netbsd-unix-gnu-x86 [ manyargs dload ptables ] > compiled 2013-03-12 on aeryn.xorinia.dim (Darwi

[Chicken-users] with-output-to-file broken in 4.8.0.3

2013-07-02 Thread Aleksej Saushev
Hello! $ csi CHICKEN (c) 2008-2013, The Chicken Team (c) 2000-2007, Felix L. Winkelmann Version 4.8.0.3 (stability/4.8.0) (rev 091c3d9) netbsd-unix-gnu-x86 [ manyargs dload ptables ] compiled 2013-03-12 on aeryn.xorinia.dim (Darwin) ; loading /home/asau/.csirc ... ; loading /usr/pkg/lib/chicke