That line is the string representation of a Var. It isn't an error - it's
just the return value of the expression you entered.

(load-file) evaluates all expressions in a file and returns the value of the
last one. In your case, it's the value of (defn counter-app [] ...), which
defines the counter-app function.

You can invoke the defined function by typing:
  (counter-app)

Regards,
Stuart

On 14 September 2011 15:42, jayvandal <s...@ida.net> wrote:

> I am running a  swing tutorial clojure program file and when I run the
> result is
> ++++++++++++++++++++++++++++++++++++++
> user=> (load-file "c:/clojure-1.2.1/counter-app.clj")
> #'user/counter-app
> user=>
> ++++++++++++++++++++++++++++++++++
>
> What does this line mean?
> #'user/counter-app
>
> The name of my file is counter-app.clj
> program listing on win Vista IS
> ------------------------------------------------------------------
> (import '(javax.swing JLabel JButton JPanel JFrame))
>
>
> (defn counter-app []
>  (let [counter (atom 0)
>        label (JLabel. "Counter: 0")
>        button (doto (JButton. "Add 1")
>                 (on-action evnt  ;; evnt is not used
>                   (.setText label
>                      (str "Counter: " (swap! counter inc)))))
>        panel (doto (JPanel.)
>                (.setOpaque true)
>                (.add label)
>                (.add button))]
>    (doto (JFrame. "Counter App")
>      (.setContentPane panel)
>      (.setSize 300 100)
>      (.setVisible true))))
>
> --
> 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
>

-- 
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

Reply via email to