Hello all,

I am trying to set up a test for a function that finds stuff in a
sequence of namespaces given as parameter.  So, my test function must
set up temporary namespaces with some stuff, which I'll pass on to the
function for the test duration.  However, the code does not compile,
as my references to the symbols in the temporary namespace bring
namespace existence issues.  This reproduces the behavior:

(defn f []
  (try
    (create-ns 'ns-a)
    (in-ns 'ns-a)
    (refer-clojure)
    (defn fn-a [] :a/a)
    (in-ns 'user)
    (println ns-a/fn-a)  ; Expect some function pointer string.
    (finally (remove-ns 'ns-a))))

This fails to compile from the REPL, with error message being

java.lang.Exception: No such namespace: ns-a (NO_SOURCE_FILE:8)

Am I trying to do something that's outside of the specification for
first-class namespaces?  Thank you for your thoughts,

Benoit
--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to