Nice!

I had to learn a bit about jogl to get it to work - had to add -
Djava.library.path={path to my jogl lib directory} to my shell script.

The following is in model.clj:

(defn update [ref val]
  (when (not (= @ref val)) (dosync (ref-set ref val))))

I believe this is not right: the deref of ref should be inside the
dosync. Although this may not matter for your application, this same
pattern applied elsewhere could be trouble, since there's no guarantee
that ref won't change between the deref and the dosync.

Also, since ref is a core function, it's less confusing to give it
another name, and you need to rename if you ever want to use the core
ref function inside your function.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to