#clojure logs

2008-05-06

11:34Chouserhas anyone gotten gen-and-load-class working with an :init and :state ?
12:15rhickeyChouser: did you get :init and :state to work?
14:40ChouserI've got it mostly figured out. Things I've learned:
14:41Chouserput the gen-class *before* using (clojure/in-ns ...) to set up the namespace
14:41ChouserIf you use :state 'foo, refer your state using (.foo this), not just foo
14:56ChouserUse :only in (refer 'clojure) in your class namespace, because any non-trivial class is like to have a large number of conflicts. Favorites include: print read replace find send
14:57Chousers/is like/is likely/