Re: Code introspection: Clojure vs Python

2009-12-14 Thread Dima Dogadaylo
Thanks, Konrad. clojure.lang.Compiler/LOCAL_ENV is what I need. -- 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

Re: Code introspection: Clojure vs Python

2009-12-13 Thread Konrad Hinsen
On 13 Dec 2009, at 11:18, Dima Dogadaylo wrote: > Is it possible to create a macros that knows from what function it was > called and what variables (bindings) are defined in the caller > function? Yes. Look at the recent thread on debug REPLs: http://groups.google.com/group/clojure/bro

Code introspection: Clojure vs Python

2009-12-13 Thread Dima Dogadaylo
Is it possible to create a macros that knows from what function it was called and what variables (bindings) are defined in the caller function? For example following python code defines function print_env that prints name of function that called print_env() along with local variables of those func