summaryrefslogtreecommitdiff
path: root/clojure.markdown
diff options
context:
space:
mode:
authorRich Hickey <richhickey@gmail.com>2007-09-29 14:22:35 +0000
committerRich Hickey <richhickey@gmail.com>2007-09-29 14:22:35 +0000
commit601a4cb8e03c0471890849580c896961080eacb9 (patch)
treebeb233c9451a21569c88a52d2fc78ad8ea548066 /clojure.markdown
parent7708963ed3926abfbf84d765f748d2e246e13ace (diff)
interim checkin
Diffstat (limited to 'clojure.markdown')
-rw-r--r--clojure.markdown8
1 files changed, 4 insertions, 4 deletions
diff --git a/clojure.markdown b/clojure.markdown
index aa3f7f8a..3c1c3ca2 100644
--- a/clojure.markdown
+++ b/clojure.markdown
@@ -383,14 +383,14 @@ The expr is evaluated and thrown, therefor it should yield an instance of some d
The expr is evaluated and its value returned. Before returning, normally or abnormally, the finally-expr will be evaluated for its side effects.
---
-### (*=* (. instance-expr instanceFieldName-symbol) expr)
-### (*=* (. Classname-symbol staticFieldName-symbol) expr)
-### (*=* var-symbol expr)
+### (*set!* (. instance-expr instanceFieldName-symbol) expr)
+### (*set!* (. Classname-symbol staticFieldName-symbol) expr)
+### (*set!* var-symbol expr)
Assignment.
When the first operand is a field member access form, the assignment is to the corresponding field. If it is an instance field, the instance expr will be evaluated, then the expr.
-When the first operand is a symbol, it must resolve to a global var. The value of the var's current thread binding is set to the value of expr. Currently, it is an error to attempt to set the root binding of a var using `=`, i.e. var assignments are thread-local.
+When the first operand is a symbol, it must resolve to a global var. The value of the var's current thread binding is set to the value of expr. Currently, it is an error to attempt to set the root binding of a var using `set!`, i.e. var assignments are thread-local.
In all cases the value of expr is returned.