annotate tests/nextid.ur @ 1893:9a1097954188

compileC: Link libraries in the right order This is needed, at least on recent Ubuntu, to fix this linker error when compiling any Ur/Web application: ld: /tmp/webapp.o: undefined reference to symbol 'uw_write' Signed-off-by: Anders Kaseorg <andersk@mit.edu> --- src/compiler.sml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
author Anders Kaseorg <andersk@mit.edu>
date Thu, 21 Nov 2013 14:32:11 -0500
parents e1f5d9c4cc20
children
rev   line source
adam@1556 1 fun main () : transaction page =
adam@1556 2 id1 <- fresh;
adam@1556 3 id2 <- fresh;
adam@1556 4 id3 <- fresh;
adam@1556 5 idS <- source id3;
adam@1556 6 return <xml><body>
adam@1556 7 <span id={id1}>Hi</span> <span id={id2}>there!</span><br/><br/>
adam@1556 8 <dyn signal={idS <- signal idS; return <xml><span id={idS}>Whoa-hoa!</span></xml>}/>
adam@1556 9 <button onclick={id <- fresh; set idS id}/>
adam@1556 10 Source: <dyn signal={idS <- signal idS; return (txt (<xml><span id={idS}>Whoa-hoa!</span></xml> : xbody))}/>
adam@1556 11 </body></xml>