actually i am able to find a few examples ... from a google group thread...
http://groups.google.com/group/clojure/browse_thread/thread/d710c290b67951a3/b827d46389110f26?lnk=gst&q=clojure+macro+%26env#b827d46389110f26

<http://groups.google.com/group/clojure/browse_thread/thread/d710c290b67951a3/b827d46389110f26?lnk=gst&q=clojure+macro+%26env#b827d46389110f26>just
thought of sharing it again in this context..
Sunil
On Wed, Oct 27, 2010 at 8:08 PM, Sunil S Nandihalli <
sunil.nandiha...@gmail.com> wrote:

> Hi Nicolas,
>  Thanks for you response.
>  This is
>
an experimental work. Knowing that there was clojuratica to link to
> mathematica .. I was hoping that we can generate the code to solve PDE ..
> This is an experimental thing .. But been having a lot of trouble in getting
> the basic stuff setup .. being able to do what I described above would be
> crucial to achieve this.
>  and between .. I didn't find any other examples of the usage of &env and
> &form apart from their presence in the clojure/core.clj. It would be nice to
> have some description of the usage of these things.
> Thanks again,
>  Sunil.
>
>
> On Wed, Oct 27, 2010 at 7:17 PM, nicolas.o...@gmail.com <
> nicolas.o...@gmail.com> wrote:
>
>> You need to use both eval and a macro to get then environment.
>> I think &env contains the lexical environment in any macro call now.
>> (I don't know in each form though).
>> So you need to walk the term, looking for free variables, close under
>> free variables by creating a function and then call eval.
>>
>> That's probably quite some work to write.
>>
>> Altogether, it looks like at least a step too far. (Especially some
>> kind of problem may arise: what of (+  x y ((fn [z] z) 3))?)
>> But I know sometimes it is necessary to go a few steps further than we
>> should.
>>
>> What is the use case?
>>
>> Best,
>>
>> Nicolas.
>>
>> --
>> 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<clojure%2bunsubscr...@googlegroups.com>
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>>
>
>

-- 
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