diff src/core_env.sml @ 125:fd98dd10dce7

Corifying (non-mutual) 'val rec'
author Adam Chlipala <adamc@hcoop.net>
date Thu, 17 Jul 2008 10:23:04 -0400
parents 813e5a52063d
children 76a4d69719d8
line wrap: on
line diff
--- a/src/core_env.sml	Thu Jul 17 10:13:18 2008 -0400
+++ b/src/core_env.sml	Thu Jul 17 10:23:04 2008 -0400
@@ -123,6 +123,7 @@
     case d of
         DCon (x, n, k, c) => pushCNamed env x n k (SOME c)
       | DVal (x, n, t, e, s) => pushENamed env x n t (SOME e) s
+      | DValRec vis => foldl (fn ((x, n, t, e, s), env) => pushENamed env x n t (SOME e) s) env vis
       | DExport _ => env
 
 end