Hi,
  I'm wondering if people might have advice on how to deal with the issue 
of reloading protocol definitions.  Currently in Overtone things break when 
we reload some namespaces because once a defprotocol form is re-evaluated 
the existing types that implement that protocol are no longer valid because 
they refer to the old protocol, even when it hasn't changed.  Our current 
fix is to wrap all protocols in a defonce form, but this isn't the 
prettiest solution ever.  Is it crazy to imagine that protocols could 
remain the same after a reload unless they have changed, so that this 
problem would only be caused by actually changing a protocol rather than 
just re-evaluating a defprotocol form?  I don't know enough about the 
underlying machinery in terms of java class types and compilation to know 
if this is a reasonable thing to do.  Otherwise, maybe there is another way 
to handle the issue?

Thanks,
Jeff

-- 
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