Yes, you are right about the lexical binding; I suspect that is less
likely to hit people though. I don't know why I keep typing 

(instance? String)

but I've done it a lot. Possibly because I am using a Java API with a
lot of very similar classes; by the time I have managed to find out
which class I need to check, I've forgotten what I was doing in the
first place. 

Thanks for opening the ticket!



Herwig Hochleitner <hhochleit...@gmail.com> writes:
> Also direct calls are only handled, if the first arg is a symbol that
> directly resolves to a class:
>
> user=> (def C Long)
> user=> (instance? C)
> ArityException Wrong number of args (1) passed to: core$instance-QMARK-
>  clojure.lang.AFn.throwArity (AFn.java:437)
>
> Starting from this, I just discovered another, much more severe bug:
>
> user=> (let [Long String] (instance? Long "abc"))
> false
>
> I've opened a ticket: http://dev.clojure.org/jira/browse/CLJ-1171
>
> -- 

-- 
Phillip Lord,                           Phone: +44 (0) 191 222 7827
Lecturer in Bioinformatics,             Email: phillip.l...@newcastle.ac.uk
School of Computing Science,            
http://homepages.cs.ncl.ac.uk/phillip.lord
Room 914 Claremont Tower,               skype: russet_apples
Newcastle University,                   twitter: phillord
NE1 7RU                                 

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