Re: java interop, `(.instanceMember Classname)`

2017-03-21 Thread Colin Fleming
I commented over there too - I'm still confused. On 22 March 2017 at 10:59, Alex Miller wrote: > > > On Tuesday, March 21, 2017 at 11:43:25 AM UTC-5, John Gabriele wrote: >> >> >> Erf. Sorry. I don't think I understand that after all, and as well may >> have confused

Re: java interop, `(.instanceMember Classname)`

2017-03-21 Thread Alex Miller
On Tuesday, March 21, 2017 at 11:43:25 AM UTC-5, John Gabriele wrote: > > > Erf. Sorry. I don't think I understand that after all, and as well may > have confused java.lang.String and java.lang.Class in my above reply. > > I also notice now that: > > user=> (class String) >

Re: java interop, `(.instanceMember Classname)`

2017-03-21 Thread Alex Miller
On further reflection, I've decided not to change this. My comment here: https://github.com/clojure/clojure-site/issues/171#issuecomment-288230603 - further discussion related to this is probably best there on the issue for posterity. On Tuesday, March 21, 2017 at 11:22:33 AM UTC-5, John

Re: java interop, `(.instanceMember Classname)`

2017-03-21 Thread John Gabriele
On Tuesday, March 21, 2017 at 12:35:05 PM UTC-4, John Gabriele wrote: > > On Monday, March 20, 2017 at 4:59:33 PM UTC-4, Colin Fleming wrote: >> >> Object doesn't have a getName() method. >> >> This doc is confusing - as Phill comments above, this is calling the >> getName() method on an instance

Re: java interop, `(.instanceMember Classname)`

2017-03-21 Thread John Gabriele
On Monday, March 20, 2017 at 4:59:33 PM UTC-4, Colin Fleming wrote: > > Object doesn't have a getName() method. > > This doc is confusing - as Phill comments above, this is calling the > getName() method on an instance of Class. In Clojure, a bare classname > (String, ArrayList or whatever)

Re: java interop, `(.instanceMember Classname)`

2017-03-21 Thread John Gabriele
On Monday, March 20, 2017 at 7:47:46 PM UTC-4, Alex Miller wrote: > > If someone could file an issue on the clojure-site repo, I would be happy > to improve the example. Thanks. Filed: , though I don't have alternative wording/prose for

Re: java interop, `(.instanceMember Classname)`

2017-03-20 Thread Alex Miller
If someone could file an issue on the clojure-site repo, I would be happy to improve the example. -- 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

Re: java interop, `(.instanceMember Classname)`

2017-03-20 Thread Gregg Reynolds
On Mar 20, 2017 3:59 PM, "Colin Fleming" wrote: Object doesn't have a getName() method. sorry, of course you're right. it's java.lang.Class that has getName. as you point out it's the doc that is suboptimal. This doc is confusing - as Phill comments above, this

Re: java interop, `(.instanceMember Classname)`

2017-03-20 Thread Colin Fleming
Object doesn't have a getName() method. This doc is confusing - as Phill comments above, this is calling the getName() method on an instance of Class. In Clojure, a bare classname (String, ArrayList or whatever) resolves to the class itself if it has been imported (i.e. what would be String.class

Re: java interop, `(.instanceMember Classname)`

2017-03-20 Thread Gregg Reynolds
On Mar 20, 2017 3:11 PM, "John Gabriele" wrote: On Monday, March 20, 2017 at 4:14:46 AM UTC-4, Matching Socks wrote: > > Methods having the same name might be distinguished by their argument > lists. > Thanks, but it sounds like you're describing method overloading, as in

Re: java interop, `(.instanceMember Classname)`

2017-03-20 Thread Gregg Reynolds
please ignore! sleep deprived. On Mar 20, 2017 3:32 PM, "Gregg Reynolds" wrote: On Mar 20, 2017 3:11 PM, "John Gabriele" wrote: On Monday, March 20, 2017 at 4:14:46 AM UTC-4, Matching Socks wrote: > > Methods having the same name might be distinguished

Re: java interop, `(.instanceMember Classname)`

2017-03-20 Thread Gregg Reynolds
On Mar 20, 2017 3:11 PM, "John Gabriele" wrote: On Monday, March 20, 2017 at 4:14:46 AM UTC-4, Matching Socks wrote: > > Methods having the same name might be distinguished by their argument > lists. > Thanks, but it sounds like you're describing method overloading, as in

Re: java interop, `(.instanceMember Classname)`

2017-03-20 Thread John Gabriele
On Monday, March 20, 2017 at 4:14:46 AM UTC-4, Matching Socks wrote: > > Methods having the same name might be distinguished by their argument > lists. > Thanks, but it sounds like you're describing method overloading, as in (.someMethod someObj arg1) ; vs (.someMethod someObj arg1

Re: java interop, `(.instanceMember Classname)`

2017-03-20 Thread Matching Socks
In (.getName String) String is an instance of the class Class. -- 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

Re: java interop, `(.instanceMember Classname)`

2017-03-20 Thread Matching Socks
Methods having the same name might be distinguished by their argument lists. -- 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

java interop, `(.instanceMember Classname)`

2017-03-20 Thread John Gabriele
In the [Java Interop Docs](https://clojure.org/reference/java_interop), what does the example (.instanceMember Classname args*) mean? (Looks like the example given at the top for that one is `(.getName String)`, but I don't see any `getName` method in the javadoc for java.lang.String.)