Re: Question on binding & macros

2010-10-11 Thread Aravindh Johendran
> Hope that helps. > > Sincerely > Meikel Thanks! That helped. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your

Re: Question on binding & macros

2010-10-11 Thread Meikel Brandmeyer
Hi, On 12 Okt., 07:05, Aravindh Johendran wrote: > (def *cont* identity) > (defmacro =values [& retvals] >   `(*cont* ~...@retvals)) > > why would the following two expressions throw errors??? > (binding [*cont* (fn [m n] (=values (list m n)))] (*cont* 'a 'b)) So what happens here: The macro =v

Question on binding & macros

2010-10-11 Thread Aravindh Johendran
I'm working on the chapter on continuations in On Lisp (Chapter 20) and am trying to translate the code to clojure However, I am running into some issues. With the following definitions: (def *cont* identity) (defmacro =values [& retvals] `(*cont* ~...@retvals)) why would the following two ex