summaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorRich Hickey <richhickey@gmail.com>2006-05-09 02:03:28 +0000
committerRich Hickey <richhickey@gmail.com>2006-05-09 02:03:28 +0000
commitda14d89c1936e9de6eacb9c12dd9e6a0d68a0829 (patch)
tree384f26f1ebc5a9efdee6665d9747fca970147504 /src/org
parent5a1b407900f2e8b5edc138386621310b66584eb5 (diff)
Hello world!
Diffstat (limited to 'src/org')
-rw-r--r--src/org/clojure/runtime/Var.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/org/clojure/runtime/Var.java b/src/org/clojure/runtime/Var.java
index e4b3dad3..a328ceb4 100644
--- a/src/org/clojure/runtime/Var.java
+++ b/src/org/clojure/runtime/Var.java
@@ -40,7 +40,12 @@ public Var bind(Object val)
else
binding.first = val;
- return this;
+ if(val instanceof IFn)
+ this.fn = (IFn) val;
+ else
+ this.fn = null; //todo, bind to throw stub?
+
+ return this;
}
public Cons getBinding(ThreadLocalData tld)