Skip to content

Commit

Permalink
Updated to Java commit 8a0482d (2011.12.02): declare record factory f…
Browse files Browse the repository at this point in the history
…unctions for use within defrecord implementation
  • Loading branch information
dmiller committed Jan 7, 2012
1 parent a78553b commit 9e8c7c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Clojure/Clojure.Source/clojure/core_deftype.clj
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -349,7 +349,9 @@
hinted-fields fields hinted-fields fields
fields (vec (map #(with-meta % nil) fields))] fields (vec (map #(with-meta % nil) fields))]
`(let [] `(let []
~(emit-defrecord name gname (vec hinted-fields) (vec interfaces) methods) (declare ~(symbol (str '-> gname)))
(declare ~(symbol (str 'map-> gname)))
~(emit-defrecord name gname (vec hinted-fields) (vec interfaces) methods)
(import ~classname) (import ~classname)
~(build-positional-factory gname classname fields) ~(build-positional-factory gname classname fields)
(defn ~(symbol (str 'map-> gname)) (defn ~(symbol (str 'map-> gname))
Expand Down

0 comments on commit 9e8c7c7

Please sign in to comment.