Thanks for you help.

I was missing sonthing, in fact the class day wasn't where i expected
it to be.


And in addintion i have to say:
Once the importe is done using :
(ns org.codingkata.unit.MyKata
  (:import org.codingkata.unit.api.BaseKataSolution
           org.codingkata.unit.api.BaseKataSolution$Day))
we can call Day class using it's "real" name :BaseKataSolution$Day)



On 26 nov, 23:50, Alex Osborne <a...@meshy.org> wrote:
> Alex Osborne <a...@meshy.org> writes:
> >benjiiiiii<benjiii...@gmail.com> writes:
>
> >> (ns org.codingkata.unit.MyKata
> >>   (:import (org.codingkata.unit.api.BaseKataSolution)
> >>           (org.codingkata.unit.api.BaseKataSolution$Day))
> >>   (:gen-class
> >>    :extends org.codingkata.unit.api.BaseKataSolution))
>
> >> This compile, but then i can't acces to Day neither BasKataSolution
> >> $Day.
>
> > Strange. After (:import org.codingkata.unit.api.BaseKataSolution$Day)
> > you should be able to use BaseKataSolution$Day.
>
> Ah.  Actually I just noticed you've got an extra pair of parens around
> your imports.  Do it either this way:
>
> (ns org.codingkata.unit.MyKata
>   (:import org.codingkata.unit.api.BaseKataSolution
>            org.codingkata.unit.api.BaseKataSolution$Day))
>
> Or this way:
>
> (ns org.codingkata.unit.MyKata
>   (:import (org.codingkata.unit.api BaseKataSolution
>                                     BaseKataSolution$Day)))
>
> The extra parens mean a prefix, like in the second example.
>
> (:import (foo bar baz)) means import both foo.bar and foo.baz
>
> While (:import (foo)) is meaningless, it doesn't do anything.

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