Skip to content

Commit

Permalink
DRY up refs to DOC_KEY #280
Browse files Browse the repository at this point in the history
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
  • Loading branch information
stuarthalloway committed Oct 12, 2010
1 parent 6d30033 commit 038e4a8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/jvm/clojure/lang/RT.java
Expand Up @@ -277,27 +277,26 @@ static public void addURL(Object url) throws Exception{
}

static{
Keyword dockw = Keyword.intern(null, "doc");
Keyword arglistskw = Keyword.intern(null, "arglists");
Symbol namesym = Symbol.create("name");
OUT.setTag(Symbol.create("java.io.Writer"));
CURRENT_NS.setTag(Symbol.create("clojure.lang.Namespace"));
AGENT.setMeta(map(dockw, "The agent currently running an action on this thread, else nil"));
AGENT.setMeta(map(DOC_KEY, "The agent currently running an action on this thread, else nil"));
AGENT.setTag(Symbol.create("clojure.lang.Agent"));
MATH_CONTEXT.setTag(Symbol.create("java.math.MathContext"));
Var nv = Var.intern(CLOJURE_NS, NAMESPACE, bootNamespace);
nv.setMacro();
Var v;
v = Var.intern(CLOJURE_NS, IN_NAMESPACE, inNamespace);
v.setMeta(map(dockw, "Sets *ns* to the namespace named by the symbol, creating it if needed.",
v.setMeta(map(DOC_KEY, "Sets *ns* to the namespace named by the symbol, creating it if needed.",
arglistskw, list(vector(namesym))));
v = Var.intern(CLOJURE_NS, LOAD_FILE,
new AFn(){
public Object invoke(Object arg1) throws Exception{
return Compiler.loadFile((String) arg1);
}
});
v.setMeta(map(dockw, "Sequentially read and evaluate the set of forms contained in the file.",
v.setMeta(map(DOC_KEY, "Sequentially read and evaluate the set of forms contained in the file.",
arglistskw, list(vector(namesym))));
try {
doInit();
Expand Down

0 comments on commit 038e4a8

Please sign in to comment.