How is this supposed to work? I use AOT compilation to produce the class files, and I have tried to recompile the functions but it doesn't appear to have an effect. I'm including the clojure as class files, are you saying that all I have to do is recompile the clojure functions? Of course, I have to admit, when I compile something I only know how to compile the whole namespace not just the functions. I guess what I'm saying is that I have no idea how to use the REPL with a running eclipse plugin which has clojure code in it. So I can't simply redef it...
-----Original Message----- From: clojure@googlegroups.com [mailto:cloj...@googlegroups.com] On Behalf Of Kevin Downey Sent: Saturday, September 05, 2009 7:46 PM To: clojure@googlegroups.com Subject: Re: Dynamically Changing Functions in Compiled Code gen-class generates a stub java class that dispatches to clojure functions, you can re-def the clojure functions that back the stubbed out class. On Sat, Sep 5, 2009 at 12:10 PM, Gorsal<s...@tewebs.com> wrote: > > I am trying to add clojure code to an eclipse plugin. To do so, the > code i compiled into class files via the clojure-dev plugin. I have a > generate class, ParenMatcher, which i use ever so often. This class > has a function which i would like to change dynamically while > debugging it. In other words, If an error is thrown inside it, i > would like to change it instead of closing the plugin and restarting > all over again! > > I've tried recompiling while the plugin is running, but that doesn't > work. Any ideas how to do this code hot swapping? > > > -- And what is good, Phaedrus, And what is not good— Need we ask anyone to tell us these things? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---