diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-03-08 20:34:21 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-03-08 20:34:21 -0400 |
commit | aed3aa32e62846a16da55fc7be4cecba92ed5e2b (patch) | |
tree | 8c31380919fec41eaf59c882a30eec7106838f6c /src/mono_util.sml | |
parent | 5f77fc276c90321dec9e17ec483a1d8b11db3c96 (diff) |
Conversion of functions to CPS, to facilitate ServerCall
Diffstat (limited to 'src/mono_util.sml')
-rw-r--r-- | src/mono_util.sml | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/mono_util.sml b/src/mono_util.sml index 00113c9b..dd5107c6 100644 --- a/src/mono_util.sml +++ b/src/mono_util.sml @@ -350,12 +350,14 @@ fun mapfoldB {typ = fc, exp = fe, bind} = fn e' => (ESignalSource e', loc)) - | EServerCall (n, ek, t) => - S.bind2 (mfe ctx ek, - fn ek' => - S.map2 (mft t, - fn t' => - (EServerCall (n, ek', t'), loc))) + | EServerCall (s, ek, t) => + S.bind2 (mfe ctx s, + fn s' => + S.bind2 (mfe ctx ek, + fn ek' => + S.map2 (mft t, + fn t' => + (EServerCall (s', ek', t'), loc)))) in mfe end |