Completed
Details
Details
Assignee
Unassigned
UnassignedReporter
Laurent PETIT
Laurent PETITApproval
Ok
Patch
Code
Priority

Affects versions
Fix versions
Created November 29, 2012 at 3:18 PM
Updated March 1, 2013 at 3:49 PM
Resolved March 1, 2013 at 3:49 PM
The 'ns macro is not as dynamic as it could be.
For instance, the following line typed in a repl (ns a)(ns b (:require a)) currently (1.4, 1.3, etc.) fails with an exception because the (:require a) call tries to reach the filesystem for file a.clj or a__init.class.
The attached patch ( dynamic-ns-patch2.diff ) allows a successful call to (ns a) behave the same as a successful call to (require 'a), adding namespace a to the list of loaded-libs.
Discussion on googlegroup's mailing list: http://groups.google.com/group/clojure-dev/browse_thread/thread/fb231e6fab4a5ad