Hi there! I'm new with Clojure, and I'm having a problem with Vimclojure and Namespaces. I'm following this<http://java.ociweb.com/mark/clojure/article.html>tutorial, currently trying to evaluate the code below. If I evaluate the whole file, it works, but not if I do so line-by-line via \et.
What seems to be happpening is that *ns* doesn't really change with (ns). If I'm connected to 3 REPLs and def user/foobar to 3 in one of them, it'll be defined in all REPLs, however if I try to change *ns*, the change in one repl does not affect the others. Why is this happening? Here is the code: (ns com.ociweb.demo (:require [clojure.contrib.str-utils :as su]) (:use [clojure.contrib.math :only (gcd, sqrt)]) (:import (java.text NumberFormat) (javax.swing JFrame JLabel))) (println (su/str-join "$" [1 2 3])) ; -> 1$2$3 (println (gcd 27 72)) ; -> 9 (println (sqrt 5)) ; -> 2.236 (println (.format (NumberFormat/getInstance) Math/PI)) ; -> 3.142 ; ; See the screenshot that follows this code. (doto (JFrame. "Hello") (.add (JLabel. "Hello, World!")) (.pack) ;(.setDefaultCloseOperation JFrame/EXIT_ON_CLOSE) ; doesn't work with this, for some reason (.setVisible true)) Thanks! -- Et Forum delendum est! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---