Mercurial > urweb
diff src/mono_util.sml @ 642:4a125bbc602d
Conversion of functions to CPS, to facilitate ServerCall
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sun, 08 Mar 2009 20:34:21 -0400 |
parents | 5891f47d7cff |
children | f73913d97a40 |
line wrap: on
line diff
--- a/src/mono_util.sml Sun Mar 08 13:41:55 2009 -0400 +++ b/src/mono_util.sml Sun Mar 08 20:34:21 2009 -0400 @@ -350,12 +350,14 @@ 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