Cool, that explain everything. Thanks

On Dec 16, 4:40 am, Meikel Brandmeyer <m...@kotka.de> wrote:
> Hi,
>
> Am 16.12.2010 um 04:16 schrieb Nicolas Buduroi:
>
> > So we could always use RT/classForName to detect what classes are
> > available. Do you think the extend-type thrown exception can possibly
> > be fixed or is it a fundamental limitation?
>
> I think the problem here is „when“ not „where.“ The „extend-type“ exception 
> is thrown when the expression is compiled because the compiler tries to 
> resolve the class. But the try catch is not in effect at that time: it just 
> gets compiled! Using RT/classForName moves the class resolution to the 
> runtime and everything works fine.
>
> You could do something like (try (load "file/with/extend-type") (catch 
> ClassNotFoundException uhOh ...)).
>
> 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