2008-05-06
| 11:34 | Chouser | has anyone gotten gen-and-load-class working with an :init and :state ? |
| 12:15 | rhickey | Chouser: did you get :init and :state to work? |
| 14:40 | Chouser | I've got it mostly figured out. Things I've learned: |
| 14:41 | Chouser | put the gen-class *before* using (clojure/in-ns ...) to set up the namespace |
| 14:41 | Chouser | If you use :state 'foo, refer your state using (.foo this), not just foo |
| 14:56 | Chouser | Use :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:57 | Chouser | s/is like/is likely/ |