On Friday, August 7, 2015 at 8:55:57 PM UTC+8, Mike Fikes wrote:
> > I'm also trying to do similar, but having some trouble with def.  def 
> > starts working if you define (js/eval "cljs.user = {}"), however defmacro 
> > does not.  Any idea of how to get defmacro working?
> 
> Hi Mattew,
> 
> If your question is about generally using cljs.js (rather than Session), then 
> the answer is that you will need to cause macros to be loaded via *load-fn*, 
> either via something akin to a require-macros REPL special or by loading a 
> file that itself requires macros from another namespace. In that case, when 
> macros are being loaded, a :macros flag will be truthy:
> 
> https://github.com/clojure/clojurescript/blob/r1.7.48/src/main/cljs/cljs/js.cljs#L56

Are you saying that once the macro has been loaded it will be correctly invoked 
by Clojurescript?  How do we actually load the macro?

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to