Mercurial > urweb
view demo/increment.ur @ 2013:77cc9169d6e0
Change context-local memory allocation to return word-aligned addresses (based on patch by Evan Danaher)
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sun, 18 May 2014 18:58:50 -0400 |
parents | e6bc6bbd7a32 |
children |
line wrap: on
line source
sequence seq fun increment () = nextval seq fun main () = src <- source 0; return <xml><body> <dyn signal={n <- signal src; return <xml>{[n]}</xml>}/> <button value="Update" onclick={fn _ => n <- rpc (increment ()); set src n}/> </body></xml>