Re: macro trouble

2009-01-02 Thread Eric Tschetter
> From the Repl try: (.printStackTrace *e) Thanks! >> The thing is, I want to store the actual *function* not the symbol >> referencing the function (the symbol's reference changes after the >> macro is evaluated). > > 1:10 user=> (defmacro tracefn > "Creates trace logging of calls to a functio

Re: macro trouble

2009-01-02 Thread Meikel Brandmeyer
Hi, Am 02.01.2009 um 18:00 schrieb Eric Tschetter: From the Repl try: (.printStackTrace *e) The thing is, I want to store the actual *function* not the symbol referencing the function (the symbol's reference changes after the macro is evaluated). 1:10 user=> (defmacro tracefn "Creates trac

Re: macro trouble

2009-01-02 Thread Eric Tschetter
> When you look at the backtrace of the exception you will find > (very far down the trace) lines like "caused by..". There you > normally find more useful information than "ExceptionInInitializer". I don't get a backtrace, all I get is what I put in the original message. How do I turn on full b

Re: macro trouble

2009-01-02 Thread Meikel Brandmeyer
Hi again, Am 02.01.2009 um 03:37 schrieb Eric Tschetter: user=> (defmacro tracefn [function-name] "Creates trace logging of calls to a function." And another minor issue: the docstring goes in front of the argument vector, because Clojure allows also variable arity. (defn foo "doc

Re: macro trouble

2009-01-02 Thread Meikel Brandmeyer
Hi, Am 02.01.2009 um 03:37 schrieb Eric Tschetter: When you look at the backtrace of the exception you will find (very far down the trace) lines like "caused by..". There you normally find more useful information than "ExceptionInInitializer". user=> (defmacro tracefn [function-name] "Creates

macro trouble

2009-01-01 Thread Eric Tschetter
I'm trying to write a simple macro that will do CL-style call tracing for me. When I try to use it, however, I'm getting an "ExceptionInInitializerError." I don't know what this actually means, though I'm sure I'm just doing something very stupid. I was hoping someone on this list could help po