I just tried to re-write with-seperator without using the symbol-macros from
macro-utils and it seems to work fine ..


On Thu, Nov 25, 2010 at 1:27 PM, Sunil S Nandihalli <
sunil.nandiha...@gmail.com> wrote:

> Hello everybody,
>  I was trying to learn to write clojure macros and the code is posted here
> in the following link
> https://gist.github.com/715047
> There are basically three macros
>
> 1. with-seperator - a zero argument macro and is supposed to just draw a
> line to indicate beginning and ending of the execution of the body.
>
> 2. display-local-bindings - a function to print the local bindings in the
> lexical scope where the macro is called
>
> 3. letd - a helper macro to print the values of all the bindings  followed
> by printing of the local bindings using display-local-bindings
>
> The letd macro as posted works as expected but without the seperation line
> .  It is supposed to print the seperation line when I uncomment line 14 and
> comment line 15 but some how this is causing the &env variable automatically
> passed with every macro to be nil display-local-binding .. but the I feel it
> is not the case .. can somebody help me understand this. This was an
> exercise to learn macro writing than to writing a letd debugging helper
> function..
>
> Thanks,
> Sunil.
>

-- 
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 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to