(defn "a method" method [args] (println "Hello" args))
ok so im gonna gess that you should putt the docstring after the name

(defn method
 "a method"
 [args]
 (println "hello" args))



2010/5/24 Shikhar <shikh...@gmail.com>

> Hi,
>  I've just installed the Counterclockwise plugin and written a hello
> world program in a file named "hello.clj"
> <Code>
> -------------------------------------------------------------------
> (ns hello)
> (defn "a method" method [args] (println "Hello" args))
> --------------------------------------------------------------------
> </Code>
>
> When I run the above file as Clojure REPL via eclipse
>
> <Console>
> ----------------------------------------------------------------
> Clojure 1.1.0
> 1:1 user=> #<Namespace hello>
> 1:2 hello=> (method "World")
> java.lang.Exception: Unable to resolve symbol: method in this context
> (repl-1:2)
> 1:3 hello=>
> -----------------------------------------------------------------
> </Console>
>
> Any thoughts on what I could be doing wrong? Thanks.
>
>
> Shikhar
>
> --
> 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<clojure%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en




-- 
------------------------------------------------------------
Email: patrik.kar...@gmail.com
------------------------------------------------------------

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