Misleading Exception due to function name containing ->

2011-09-10 Thread Christina Conway
A function name contains the characters -> e.g. foo->fn The function causes an exception. However the exception is not reported on the function but on another function called before it. java.lang.IllegalArgumentException: Wrong number of args (1) passed to: datetime$other-fn If the > charac

Re: Misleading Exception due to function name containing ->

2011-09-12 Thread Christina Conway
Thanks for the suggestion BG. I tried using clj-stacktrace but the function name is still not displayed correctly in the trace. Regards, cc On 11 September 2011 13:53, Baishampayan Ghose wrote: > > The foo->fn function is compiled to a .class file as: > > foo__GT_fn.class > > The foo>fn functio

Re: Misleading Exception due to function name containing ->

2011-09-12 Thread Christina Conway
ustrates the problem. The exception indicates that the foo function has the wrong number of arguments. But it has one argument which is correct. It is actually the foo->foo2 function which should have two arguments but has one. I am using clojure 1.2. Thanks, cc On 12 September 2011 14:00, Chouse