Hi,

Am 15.08.2010 um 18:04 schrieb sebastien:

> I understand that after AOT compilation Clojure namespaces and
> functions became completely normal Java classes and can be called from
> any Java code, is it correct? If so, how will look like this call? For
> example, I have clojure module:
> 
> (ns semantic.hello
>  (:gen-class))
> 
> (defn -sayhello [] (println "Hello from clojure!"))
> 
> (defn -main [] (-sayhello))
> 
> and I want to call function -sayhello from Java program:

import semantic.hello;

> class Test {
> 
>    public static void main(String[] args) {
            semantic.hello h = new semantic.hello();

            h.sayhello();
>    }
> 
> }
> 
> What should I write instead of ??? signs?
> 
> I know that the answer is easy, but it seems like I'm missing
> something all the time.

Sincerely
Meikel

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