comparison demo/increment.ur @ 908:ed06e25c70ef

Convert to requiring explicit 'rpc' marker
author Adam Chlipala <adamc@hcoop.net>
date Sat, 22 Aug 2009 12:55:18 -0400
parents a44daa674810
children e6bc6bbd7a32
comparison
equal deleted inserted replaced
907:5fe49effbc83 908:ed06e25c70ef
4 4
5 fun main () = 5 fun main () =
6 src <- source 0; 6 src <- source 0;
7 return <xml><body> 7 return <xml><body>
8 <dyn signal={n <- signal src; return <xml>{[n]}</xml>}/> 8 <dyn signal={n <- signal src; return <xml>{[n]}</xml>}/>
9 <button value="Update" onclick={n <- increment (); set src n}/> 9 <button value="Update" onclick={n <- rpc (increment ()); set src n}/>
10 </body></xml> 10 </body></xml>