Re: anonymous fns won't work in seesaw...

2012-08-17 Thread Jim - FooBar();
aaa ok thanks a lot! I was under the impression that #() created a (fn [& args] ...) ! Jim On 17/08/12 11:46, Bronsa wrote: this is because the #() checks for arguments used inside its body to infer its arity. in #(alert "..") you don't use any arg so it creates a function with no argument

Re: anonymous fns won't work in seesaw...

2012-08-17 Thread Bronsa
this is because the #() checks for arguments used inside its body to infer its arity. in #(alert "..") you don't use any arg so it creates a function with no argument, such as doing (fn [] ..) Il giorno 17/ago/2012 11.50, "Jim - FooBar();" ha scritto: > Hi everyone, > > I was surprised to discov

anonymous fns won't work in seesaw...

2012-08-17 Thread Jim - FooBar();
Hi everyone, I was surprised to discover that anonymous functions will not work in seesaw...For example the following throws an exception (wrong number of args): (button :text "Undo" :listen [:action #(alert "Not implemented!")]) but if i replace the anonymous fn with (fn [e] (alert "Not i