Oz and Mozart Users Mailing List

Re: Whole Env for EvalExpression?


From: Leif Kornstaedt (kornstae@ps.uni-sb.de)
Date: Fri Aug 10 2001 - 11:41:23 CEST


rlpowell@digitalkingdom.org (Robin Lee Powell) writes:
> Is there a way to automatically construct an Env record consisting of
> the entire environment at that point in the code, for the purpose of
> passing it to Compiler.evalExpression?

If I understand you correctly, you are looking for some means
of `reflecting' the environment at some point in your program.
It should be fairly easy to add something like this to the
compiler, so if you're desperate enough you could try doing
that ;-)

Why isn't it sufficient to take the full base environment
and extend it with the declarations you need manually?
I'm curious - what application did you have in mind?

Leif.
-
Please send submissions to users@mozart-oz.org
and administriva mail to users-request@mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.



This archive was generated by hypermail 2b29.