proper separation of static and dynamic context
authorhaftmann
Thu, 15 May 2014 16:38:31 +0200
changeset 56972 f64730f667b9
parent 56971 f4942eb3bb03
child 56973 62da80041afd
proper separation of static and dynamic context
src/Tools/nbe.ML
--- a/src/Tools/nbe.ML	Thu May 15 16:38:30 2014 +0200
+++ b/src/Tools/nbe.ML	Thu May 15 16:38:31 2014 +0200
@@ -600,13 +600,13 @@
 fun static_conv ctxt consts =
   let
     val evaluator = Code_Thingol.static_conv ctxt consts
-      (fn program => fn _ => K (oracle ctxt (compile true ctxt program)));
+      (fn program => fn _ => fn ctxt' => oracle ctxt' (compile true ctxt program));
   in fn ctxt' => lift_triv_classes_conv ctxt' (evaluator ctxt') end;
 
 fun static_value ctxt consts =
   let
     val evaluator = Code_Thingol.static_value ctxt I consts
-      (fn program => fn _ => K (eval_term ctxt (compile false ctxt program)));
+      (fn program => fn _ => fn ctxt' => eval_term ctxt' (compile false ctxt program));
   in fn ctxt' => lift_triv_classes_rew ctxt' (evaluator ctxt') end;
 
 end;