behaviour of (symbols)
Posted: Fri Jan 12, 2007 12:52 pm
There is one thing that I don't understand about function (symbols). Run this as a script:
Output that I get is: (f s2 x y)
My question is: Why 'x' or 'y'? Function 'f' was never called and even if it was - 'x' or 'y' are only temporary symbols.
Thanks for answering, Fanda
Code: Select all
(set 's1 (symbols))
(define (f x)
(let (y 2)
(+ x y)))
(set 's2 (symbols))
(println (difference s2 s1 true))
(exit)
My question is: Why 'x' or 'y'? Function 'f' was never called and even if it was - 'x' or 'y' are only temporary symbols.
Thanks for answering, Fanda