2008/7/30 Maciek Godek <[EMAIL PROTECTED]>: > > By the way I have a question (regarding not using eval). > I want to pass the contents of a list to a function that accepts the > so-called "rest" args. > (let ((l '(1 2 3 4 5))) > (let ((operation (append '(+) l))) > (primitive-eval operation) > ) > ) > > How to achieve this effect without using eval? > (I've tried (+ . l) but it didn't work out)
(apply + l) >> The view of the scheme community as a whole is that first class lexical >> environments are irreconcilable with the need to compile (optimize) code. > > Certainly there's a faction that thinks differently :] If and when we have an optimized compiler, I imagine there would be some way of allowing the environment to be optimized away when not explicitly wanted, but kept available when it is wanted. > Yeah, I always write additional layers so the code corresponds to the > way I think. (Everybody does, don't they?) Yes! Regards, Neil