If you are using the default reader, it will exit on end of stream (on
unix you can enter this with ctrl-d, windows might be ctrl-z enter, or
if you are using a stream just close it)
(doc clojure.main/repl)
- :read, function of two arguments, reads from *in*:
- returns its first argument to request a fresh prompt
- depending on need-prompt, this may cause the repl to
prompt
before reading again
- returns its second argument to request an exit from the
repl
- else returns the next object read from the input stream
default: repl-read
(doc clojure.main/repl-read)
- returns request-exit on end of stream
Is that what you are looking for or am I misunderstanding what you
want to do?
On Mar 12, 7:53 am, NarayanS <[email protected]> wrote:
> I am using the clojure.main/repl function to start a new repl in my
> application. When I am done i want to close it. Repl has a read-eval-
> print going - how can i stop it? Currently i am passing "caught"
> option which throws an exception for certain condition and breaks the
> loop.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---