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 java.lang.String and java.lang.Class in my above reply.
>>
>> I also notice now that:
>>
>> user=> (class String)
>> java.lang.Class
>>
>> but
>>
>> user=> (. java.lang.Class getName)
>> CompilerException java.lang.NoSuchFieldException: getName,
>> compiling:(/tmp/form-init2724986764275224936.clj:1:1)
>>
>>
> This is exactly the reason that it's actually a different case. As the
> reference doc says, the equivalent expansion is:
>
> user=> (. (identity Class) getName)
> "java.lang.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 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/d/optout.
>

-- 
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/d/optout.


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)
> java.lang.Class
>
> but
>
> user=> (. java.lang.Class getName)
> CompilerException java.lang.NoSuchFieldException: getName, 
> compiling:(/tmp/form-init2724986764275224936.clj:1:1) 
>
>
This is exactly the reason that it's actually a different case. As the 
reference doc says, the equivalent expansion is:

user=> (. (identity Class) getName)
"java.lang.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 
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/d/optout.


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 Gabriele wrote:
>
>
>
> 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 it.
>
>

-- 
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/d/optout.


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 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 in Java). The doc is confusing 
>> because (.instanceMember Classname args*) is really just a special case 
>> of (.instanceMember instance args*), where "instance" refers to an instance 
>> of a Class object. I'm not sure why that doc makes that distinction, it 
>> doesn't seem useful to me.
>>
>
> Oh. I see. `SomeClass` is an instance of java.lang.Class.
>
> user=> (. (class String) getName)
> "java.lang.Class"
>
>
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)
java.lang.Class

but

user=> (. java.lang.Class getName)
CompilerException java.lang.NoSuchFieldException: getName, 
compiling:(/tmp/form-init2724986764275224936.clj:1:1) 

-- 
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/d/optout.


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) resolves to the class itself if it has been 
> imported (i.e. what would be String.class in Java). The doc is confusing 
> because (.instanceMember Classname args*) is really just a special case 
> of (.instanceMember instance args*), where "instance" refers to an instance 
> of a Class object. I'm not sure why that doc makes that distinction, it 
> doesn't seem useful to me.
>

Oh. I see. `SomeClass` is an instance of java.lang.Class.

user=> (. (class String) getName)
"java.lang.Class"

Though, the second code block down at 
 says:

(.instanceMember Classname args*) ==> 

(. (identity Classname) instanceMember args*)


However, I don't understand why this works:

user=> (. (identity String) getName)
"java.lang.String"

since

user=> (= String (identity String))
true

and this fails:

user=> (. String getName)
CompilerException java.lang.NoSuchFieldException: getName, 
compiling:(/tmp/form-init2724986764275224936.clj:1:1) 


-- 
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/d/optout.


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

-- 
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/d/optout.


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 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/d/optout.


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 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 in Java). The doc is confusing
because (.instanceMember Classname args*) is really just a special case
of (.instanceMember instance args*), where "instance" refers to an instance
of a Class object. I'm not sure why that doc makes that distinction, it
doesn't seem useful to me.

On 21 March 2017 at 09:49, 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 by their argument
>> lists.
>>
>
> Thanks, but it sounds like you're describing method overloading, as in
>
> (.someMethod someObj arg1) ; vs
> (.someMethod someObj arg1 arg2) ; different arity gets different method
>
> whereas I think I'm asking about what the `(.someMethod SomeClass ...)`
> syntax is supposed to mean (where it looks like one is trying to call an
> instance method on a Class (?).
>
>
> String inherits from Object, which has a getName method.
>
> Am I misunderstanding your reply?
>
> Thanks!
>
> --
> 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/d/optout.
>
>
> --
> 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/d/optout.
>

-- 
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/d/optout.

-- 
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/d/optout.


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 in Java). The doc is confusing
because (.instanceMember Classname args*) is really just a special case
of (.instanceMember instance args*), where "instance" refers to an instance
of a Class object. I'm not sure why that doc makes that distinction, it
doesn't seem useful to me.

On 21 March 2017 at 09:49, 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 by their argument
>> lists.
>>
>
> Thanks, but it sounds like you're describing method overloading, as in
>
> (.someMethod someObj arg1) ; vs
> (.someMethod someObj arg1 arg2) ; different arity gets different method
>
> whereas I think I'm asking about what the `(.someMethod SomeClass ...)`
> syntax is supposed to mean (where it looks like one is trying to call an
> instance method on a Class (?).
>
>
> String inherits from Object, which has a getName method.
>
> Am I misunderstanding your reply?
>
> Thanks!
>
> --
> 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/d/optout.
>
>
> --
> 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/d/optout.
>

-- 
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/d/optout.


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

(.someMethod someObj arg1) ; vs
(.someMethod someObj arg1 arg2) ; different arity gets different method

whereas I think I'm asking about what the `(.someMethod SomeClass ...)`
syntax is supposed to mean (where it looks like one is trying to call an
instance method on a Class (?).


String inherits from Object, which has a getName method.

Am I misunderstanding your reply?

Thanks!

-- 
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/d/optout.

-- 
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/d/optout.


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 by their argument
> lists.
>

Thanks, but it sounds like you're describing method overloading, as in

(.someMethod someObj arg1) ; vs
(.someMethod someObj arg1 arg2) ; different arity gets different method

whereas I think I'm asking about what the `(.someMethod SomeClass ...)`
syntax is supposed to mean (where it looks like one is trying to call an
instance method on a Class


it's just an example of the difficulty of documenting abstractions.  just
replace "SomeClass" with "instanceOfSomeClass"

-- 
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/d/optout.


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

(.someMethod someObj arg1) ; vs
(.someMethod someObj arg1 arg2) ; different arity gets different method

whereas I think I'm asking about what the `(.someMethod SomeClass ...)`
syntax is supposed to mean (where it looks like one is trying to call an
instance method on a Class


it's just an example of the difficulty of documenting abstractions.  just
replace "SomeClass" with "instanceOfSomeClass"

-- 
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/d/optout.


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 arg2) ; different arity gets different method

whereas I think I'm asking about what the `(.someMethod SomeClass ...)` 
syntax is supposed to mean (where it looks like one is trying to call an 
instance method on a Class (?).

Am I misunderstanding your reply?

Thanks!

-- 
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/d/optout.


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 
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/d/optout.


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 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/d/optout.


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

It's been a while since I've used Java. I understand the other examples 
there (accessing static and instance fields/members, and calling static and 
instance methods), but I don't understand what that above one means.

Thanks!

-- 
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/d/optout.