Re: (alength nil) = java.lang.IllegalArgumentException: More than one matching method found

2009-01-06 Thread Chouser
? Please note I'm using revision 1195. user= (alength nil) java.lang.IllegalArgumentException: More than one matching method found: alength (NO_SOURCE_FILE:146) The docs say Works on arrays of all types and last I checked, nil is not an array of any type. What would you expect it to do? --Chouser

Re: (alength nil) = java.lang.IllegalArgumentException: More than one matching method found

2009-01-06 Thread rzeze...@gmail.com
by the behavior.  Is this a bug or expected behavior? Please note I'm using revision 1195. user= (alength nil) java.lang.IllegalArgumentException: More than one matching method found: alength (NO_SOURCE_FILE:146) The docs say Works on arrays of all types and last I checked, nil

Re: (alength nil) = java.lang.IllegalArgumentException: More than one matching method found

2009-01-06 Thread Paul Mooser
Well, I'm guessing that the multiple methods exception is due to the fact that the value of null in Java is not typed - that is to say, there is no such thing as a null String versus a null Integer - null is just null. If you pass a value of null to something that has multiple implementations,

(alength nil) = java.lang.IllegalArgumentException: More than one matching method found

2009-01-05 Thread rzeze...@gmail.com
) java.lang.IllegalArgumentException: More than one matching method found: alength (NO_SOURCE_FILE:146) user= (.printStackTrace *e) java.lang.IllegalArgumentException: More than one matching method found: alength (NO_SOURCE_FILE:146) at clojure.lang.Compiler.analyzeSeq(Compiler.java:4139