Mercurial > cortex
diff org/hearing.org @ 317:bb3f8a4af87f
removed references to defvar from clojure.contrib.def since the def from 1.4 now allows for docstrings
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Tue, 28 Feb 2012 14:04:21 -0600 |
parents | 2c7fbcbd5ebb |
children | 702b5c78c2de |
line wrap: on
line diff
1.1 --- a/org/hearing.org Tue Feb 28 13:44:46 2012 -0600 1.2 +++ b/org/hearing.org Tue Feb 28 14:04:21 2012 -0600 1.3 @@ -834,11 +834,12 @@ 1.4 1.5 #+name: hearing-ears 1.6 #+begin_src clojure 1.7 -(defvar 1.8 - ^{:arglists '([creature])} 1.9 +(def 1.10 + ^{:doc "Return the children of the creature's \"ears\" node." 1.11 + :arglists '([creature])} 1.12 ears 1.13 - (sense-nodes "ears") 1.14 - "Return the children of the creature's \"ears\" node.") 1.15 + (sense-nodes "ears")) 1.16 + 1.17 1.18 (defn update-listener-velocity! 1.19 "Update the listener's velocity every update loop." 1.20 @@ -1140,7 +1141,6 @@ 1.21 instantiates them in the world as simulated ears." 1.22 {:author "Robert McIntyre"} 1.23 (:use (cortex world util sense)) 1.24 - (:use clojure.contrib.def) 1.25 (:import java.nio.ByteBuffer) 1.26 (:import java.awt.image.BufferedImage) 1.27 (:import org.tritonus.share.sampled.FloatSampleTools)