Hi Jürgen,

Things are declared :private usually because the author of the library 
didn't want to commit to a public API function in future releases. The 
var-get trick works fine (you can also write @#'io/do-copy) but there's no 
promise that `do-copy` will stay the same between releases. As long as 
you're aware that your code might be broken by a future release, there's no 
reason not to extend it as you did.

Since Clojure is designed to be compatible with JDK 1.5, it doesn't use 
NIO2 anywhere. Perhaps conditional compilation (a possible feature for 
Clojure 1.6) will make it possible to support newer JDK features like NIO2.

-S




On Friday, February 22, 2013 12:23:27 PM UTC-5, Jürgen Hötzel wrote:
>
> Hi,
>
> I implemented 
>
> (defmethod (var-get #'io/do-copy) [Path Path] [#^Path input #^Path output 
> opts] ...) 
>
> for fast NIO2 io, but had to do the var-get workaround because do-copy is 
> defined private.
>
> Jürgen
>
>

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to