Cedric Greevey:

> Then he has a problem, since it doesn't work with reify and proxy, and
> gen-class, deftype, and defrecord are top-level things that don't play
> nice with putting them inside a defn.
> 

I do not need them to be inside defn. They will be used as defn and defrecord 
are
used, in the top-level namespace code.

> I'm actually somewhat surprised that Clojure provides no good way
> around this problem in that case.
> 

I personally find this an edge case with how Quartz works, see my reply in this 
thread
about possible class loading problems.

> The OP will basically just have to have a separate deftype for each
> job class he needs. The parts that are repetitious can at least be
> abstracted into a macro, something like (defmacro defjob [name & body]
> `(deftype ~name [] Job (execute [ctx] ~@body))).

I find it fine for my needs.

MK

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to