On Mon, Feb 28, 2011 at 2:51 PM, Seth <wbu...@gmail.com> wrote:
> Notice that saving the code wouldn't work if you had locals (i.e.
> clojures). On the other hand, clojures are serialized when you
> serialize the function.

All the way back in my first post to this thread, I noted that for
closures you'd need to send a non-closure function with an explicit
parameter for the closed-over value along with the closed-over value
for a solution like that one.

> Finally, theres no reason why you couldnt change the clojure core
> source to make functions serializable - it wouldnt break anything with
> any other code. So, if you could figure out how to make leiningen
> import  only your modified clojure core jar (instead of the regular
> clojure-1.2.0.jar), it would work nicely.

So, combine the ClassLoader hackery with slapping "implements
Serializable" on clojure.lang.IFn?

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