firephil / lotrepls

Automatically exported from code.google.com/p/lotrepls
Other
0 stars 0 forks source link

clojure does not preserve state between calls #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. /switch clojure
2. (def foo 5)
3. foo

What is the expected output? What do you see instead?
5
I see:
Interpreter exception: com.google.lotrepls.shared.InterpreterException:
java.lang.Exception: Unable to resolve symbol: foo in this context
(NO_SOURCE_FILE:0)

What version of the product are you using? On what operating system?

Please provide any additional information below.

perhaps clojure should get its * back ;)

Original issue reported on code.google.com by arthur.u...@gmail.com on 14 May 2009 at 11:25

GoogleCodeExporter commented 9 years ago
now i can def a var and access it a few times before it disappears and it seems 
to
mix in previous definitions of the same symbol. In this case I had prevuisly 
defined
foo. 

Interpreter exception: com.google.lotrepls.shared.InterpreterException:
java.lang.Exception: Unable to resolve symbol: foo in this context 
(NO_SOURCE_FILE:0)

Clojure >>> (def foo {:a 1 :b 2})

#'clojure.core/foo

Clojure >>> foo

{:c 4, :a 2}

Clojure >>> foo

{:b 2, :a 1}

Clojure >>> foo

{:c 4, :a 2}

Clojure >>> foo

Interpreter exception: com.google.lotrepls.shared.InterpreterException:
java.lang.Exception: Unable to resolve symbol: foo in this context 
(NO_SOURCE_FILE:0)

Clojure >>>

Original comment by arthur.u...@gmail.com on 16 Jun 2009 at 9:21