On Wednesday, June 21, 2017 at 9:03:55 AM UTC-5, Didier wrote:
>
> That makes sense. Actually if you use Clojure's Java API and you require a 
> namespace and invoke a Var, it will do the same, *ns* will just be 
> clojure.core.
>
> So I get it is simply because the last thing to set ns was RT.
>
> One more question:
>
> So I assume "load" would eval ns in my namespace, setting *ns* to 
> dda.main, then it would run through the file, eval all forms, and finally 
> it would reset *ns* to the previous value. Is that correct, or is there 
> something about loading that's different?
>

Pretty much. You could be a little more precise to say that load pushes a 
local *ns* dynamic binding onto the stack and that context is popped when 
you leave the load, so really it's not resetting *ns*, it's just popping 
the nested context off (and that value was there all along). You can see 
some of that in RT.load().
 

> Thanks
>
>

-- 
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/d/optout.

Reply via email to