It would appear that using (:import ...) and (import ...)
with the ns function work the same (svn rev 1172.)

1:1 user=> (ns blah (import (java.net URL)))
nil
1:2 blah=> (URL. "http://www.clojure.org";)
#<URL http://www.clojure.org>

and

1:1 user=> (ns blah2 (:import (java.net URL)))
nil
1:2 blah2=> (URL. "http://www.clojure.org";)
#<URL http://www.clojure.org>

Is this true and if so does it work for all of the other types
of references as well?

--~--~---------~--~----~------------~-------~--~----~
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 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to