view tests/parseInt.ur @ 2303:42079884e34a

Add read locks around time read in store.
author Ziv Scully <ziv@mit.edu>
date Fri, 20 Nov 2015 11:51:14 -0500
parents 4798ad652c94
children
line wrap: on
line source
fun main () : transaction page =
    s <- source "";
    return <xml><body>
      <ctextbox source={s}/>
      <button onclick={n <- get s;
                       case read n of
                           None => alert "Invalid"
                         | Some n => alert (show (n + 1))}/>
    </body></xml>