I have a peculiar problem (due to being used in a scripting context) 
related to in-ns.

I have a file that is executed in a namespace which is provided by the 
scripting infrastructure (per invocation, i.e. I do not know the namespace 
statically,it will be something like "prefix.unknown-123"). This namespace 
contains a var, say, x.

Now I can switch to a known namespace (I'll call it "prefix.known"):

(in-ns 'prefix.known)

but I can no longer use x, because x dose not exist, but 
prefix.unknown-123/x exists, but I don't know the name of the generated 
namespace.

Now, I could remember the namespace at the time of script invocation with 
*ns*, but where can I store this reference in a way that is accessible 
later after switching to the namespace prefix.known?

TL;DR: how can I propagate vars from the current namespace when switching 
to a new namespace using in-ns?

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