(Sorry if this is a repeat; hotel networking is sketchy.)

On Nov 9, 12:07 am, "Brian Doyle" <[EMAIL PROTECTED]> wrote:
> This seems like a bug returning false for StringBuilder.
>
> user=> (string? (new java.lang.String "hello"))
> true
>
> user=> (string? (new java.lang.StringBuilder "hello"))
> false

Wouldn't it be a StringBuilder, not a String?

user=> (. (new java.lang.StringBuilder "hello") getClass)
#=java.lang.StringBuilder
user=> (string? (. (new java.lang.StringBuilder "hello") toString))
true

Dave

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to