Ah wait, I may have read that wrong. So what I understand is because I
am calling it from the the -e, it is ran in the user ns. Ok that makes
sense.

On May 26, 2:28 am, Brent Millare <brent.mill...@gmail.com> wrote:
> Hi Meikel,
>
> Well if #'user/x is the correct behavior, then the repl behavior needs
> to be fixed. Either one may be "correct" but that does not explain the
> discrepancy. Also I agree that eval should be avoided, but I found an
> extreme case where it was necessary (due to the desired side effect of
> starting a new classloader).
>
> Best,
> Brent
>
> On May 26, 1:27 am, Meikel Brandmeyer <m...@kotka.de> wrote:
>
> > Hi,
>
> > On May 26, 12:17 am, Brent Millare <brent.mill...@gmail.com> wrote:
>
> > > ^^ That should read #'bar/x instead of #'user/x
>
> > No. foo/f expands into a macro calling eval on a def. This eval
> > is put into a function bar/b. When you call the function the
> > namespace "in charge" is user. So everything is correct.
>
> > Usual disclaimer:
> > Don't do non-global def (besides a surrounding scope-limiting
> > let). Avoid eval.
>
> > Sincerely
> > Meikel
>
>

-- 
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

Reply via email to