Skip to content

Commit

Permalink
fixing some broken stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Ribeiro committed Feb 9, 2013
1 parent a716ad9 commit 9cd3a3e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
out
Binary file added lib/clojure.jar
Binary file not shown.
8 changes: 4 additions & 4 deletions src/evaling/dynamicdef.clj
Expand Up @@ -2,16 +2,16 @@
; from http://stackoverflow.com/questions/678867/how-to-defn-a-function-from-string-in-clojure

(intern *ns* (symbol "a") "hi-a")
(def #=(symbol "new") "hi-new")

(prn #=(symbol "newa"))
;(def #=(symbol "new") "hi-new")
;
;(prn #=(symbol "newa"))

; Doesn't work
;(doseq [x ["cool" "wow"]]
; (def #=(symbol x) (str "hi-" x))
; )

(prn a)
(prn new)
;(prn new)

(-> (symbol "a") resolve deref prn)
2 changes: 0 additions & 2 deletions src/evaling/letfn.clj
Expand Up @@ -4,5 +4,3 @@
(prn (cool))
)


c
2 changes: 1 addition & 1 deletion src/scrapbook.clj
Expand Up @@ -7,7 +7,7 @@
(try (func) (catch Exception e
(do
(prn "Bad things happen")
(.printStackTrace e *out*))))
(.printStackTrace e))))
)

(prn (tryit #(/ 9 0)))

0 comments on commit 9cd3a3e

Please sign in to comment.