Reduce toplevel environment decls and allow them in user config
authorClinton Ebadi <clinton@unknownlamer.org>
Sun, 27 Apr 2014 01:19:29 +0000 (21:19 -0400)
committerClinton Ebadi <clinton@unknownlamer.org>
Sun, 27 Apr 2014 01:19:29 +0000 (21:19 -0400)
commit254d5faaae330b43f04ad7f39fb4340457d78776
tree5e2d1440ad6841757b9385ce20ec62e924c4accb
parentd63aa5e7b08630cc17a606e85e35acc5bd0041ee
Reduce toplevel environment decls and allow them in user config

The root of the dynamic environment is passed separately to Eval.exec'
to allow user config to re-declare dynamics (like regular vals). This
uncovered (and perpetuates) a bug with process DVal/DEnv:

  val foo = "foo";
  val bar = foo;
  val foo = "bar";

When bar is expanded, it now has the value "bar" instead of
"foo", which is wrong.
src/env.sig
src/env.sml
src/eval.sig
src/eval.sml
src/main.sml