On Jul 21, 4:02 pm, Ramakrishnan Muthukrishnan <[email protected]>
wrote:
> On Wed, Jul 21, 2010 at 6:04 PM, Krukow <[email protected]> wrote:
> > 0: com.trifork.intrafoo.clj.extract_contacts
> > $extract_all.invoke(NO_SOURCE_FILE:1)
> > Locals:
> > pref = /Users/krukow/workspaces/trifork/intrafoo_clj/
> > contactdata/
> > cli = org.apache.commons.httpclient.httpcli...@6078b973
> > cs = ["411719" "413255" "413279"
>
> > In the repl I can hit ENTER:
>
> I don't seem to get this problem.
>
> user> (defn foobar []
> (let [a 10
> b 20]
> (swank.core/break)
> (* a b)))
> #'user/foobar
> user> (foobar)
>
> (I switch back to slime-repl and hit enter, this drops me into the repl.
> nil
> user> a
> 10
> user> b
> 20
>
> --
> Ramakrishnan
Yes that works for me too. But the problem seems to happen because I
have a Java object in scope.
user> (import 'org.apache.commons.httpclient.HttpClient)
user> (defn foobar []
(let [a (HttpClient.)
b 20]
(swank.core/break)
(* a b)))
#'user/foobar
user> (foobar)
nil
user> a
Gives:
Can't embed object in code, maybe print-dup not defined:
org.apache.commons.httpclient.httpcli...@5406f513
[Thrown class java.lang.RuntimeException]
Restarts:
0: [QUIT] Quit to the SLIME top level
1: [ABORT] ABORT to SLIME level 0
/Karl
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en