REPL Namespace Display

11 views
Skip to first unread message

brian

unread,
Dec 18, 2008, 6:02:46 PM12/18/08
to Clojure
Hope this is the appropriate place for this... anyway, very trivial
issue. I was playing around in an effort to begin to understand the
ns fns & managed to get the current/active ns & REPL displayed ns out
of synch via the following:

user> *ns*
#<Namespace user>
user> (in-ns 'howdy)
#<Namespace howdy>
howdy> (clojure.core/refer 'clojure.core)
nil
howdy> *ns*
#<Namespace howdy>
howdy> (remove-ns 'howdy)
#<Namespace howdy>
howdy> *ns*
#<Namespace user>
howdy>
howdy> (in-ns 'user)
#<Namespace user>
howdy>

Switching to another ns corrects it.

BTW l'm really looking forward to digging into this language as a long
time Java wanna-be Lispy programmer (so thx Rich)

-Brian

Chouser

unread,
Dec 18, 2008, 8:00:51 PM12/18/08
to clo...@googlegroups.com
On Thu, Dec 18, 2008 at 6:02 PM, brian <brian....@gmail.com> wrote:
>
> Hope this is the appropriate place for this... anyway, very trivial
> issue. I was playing around in an effort to begin to understand the
> ns fns & managed to get the current/active ns & REPL displayed ns out
> of synch via the following:
>
> user> *ns*
> #<Namespace user>
> user> (in-ns 'howdy)
> #<Namespace howdy>
> howdy> (clojure.core/refer 'clojure.core)
> nil
> howdy> *ns*
> #<Namespace howdy>
> howdy> (remove-ns 'howdy)
> #<Namespace howdy>
> howdy> *ns*
> #<Namespace user>
> howdy>
> howdy> (in-ns 'user)
> #<Namespace user>
> howdy>
>
> Switching to another ns corrects it.

We now have several Repls, and each acts slightly differently. I
couldn't reproduce this with clojure.lang.Repl. I'm guessing from
your prompt that you're using emacs/slime. Is that correct?

--Chouser

brian

unread,
Dec 19, 2008, 12:16:46 AM12/19/08
to Clojure
That's correct. And I couldn't reproduce with the java
clojure.lang.Repl either. Guess I was thinking it was just a pass
through... I'm an emacs & slime noob too ;)

-Brian

On Dec 18, 6:00 pm, Chouser <chou...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages