Re: please explain where and why to use var-quote

2010-08-04 Thread Nicolas Oury
2010/8/4 limux : > Thanks for your very very helpful help. > >  I want to do something like rails's activerecord orm, > The following is the primary idea: > > (defmacro defmodel [model-name] >   `(let [temp# ~(symbol (str "app.model." model-name))] >       (do >           ;; create the namespace ac

Re: please explain where and why to use var-quote

2010-08-04 Thread limux
Thanks for your very very helpful help. I want to do something like rails's activerecord orm, The following is the primary idea: (defmacro defmodel [model-name] `(let [temp# ~(symbol (str "app.model." model-name))] (do ;; create the namespace according to model name

Re: please explain where and why to use var-quote

2010-08-04 Thread limux
Thanks for your very very helpful help. Another question is: defmacro defmodel [model-name] `(let [sym-model-name ~(symbol (str "app.model." model-name))] (do On 8月4日, 下午3时42分, Meikel Brandmeyer wrote: > Hi, > > On Aug 4, 9:32 am, limux wrote: > > > i very confused var-quote, hope som

Re: please explain where and why to use var-quote

2010-08-04 Thread Meikel Brandmeyer
Hi, On Aug 4, 9:32 am, limux wrote: > i very confused var-quote, hope someone explain it more detailed than > the clojure.org's, thks. Global values are stored in so-called Vars. Symbols are used in program code to link to those Vars, ie. to basically give them a name. So the addition function