t x <txrev...@gmail.com> writes:

> Staurt, Phillip:
>
> Correct me if I'm wrong, the main idea recommended is:
>
> (1) don't try to do it via (:require ...) inside of (ns ... )
> (2) define a function, which calls (require ... ) [i.e. the function,
> outside of (ns ... )]
>
> Thus, the end solution ends up being:
>
> magic.cljx
>
> (defn load-standard-requires []
>   (require ... )
>   (require ... ))

You can make this a little neater, as require is a function. So
something like (untested)...

(defn load-standard-requires[]
    (doall [n [[foo][bar]]]
         (require n)))

> foo.cljx:
>
> (ns foo ... )

This needs to require magic.clj

> Can either of you confirm this is the main plan of attack you have
> suggested? (It seems reasonable, but I want to make sure I understand what
> you're recommending.)


It's the only way that I can see.


Phil

-- 
-- 
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 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to