annotate tests/selfRpc.ur @ 1836:276fa06428ba

Ignore polymorphism in JavaScript calls to custom FFI functions, allowing a kind of simple dynamic typing (unsafe, of course)
author Adam Chlipala <adam@chlipala.net>
date Tue, 11 Dec 2012 15:58:23 -0500
parents 385a1b799a74
children
rev   line source
adam@1695 1 fun test () =
adam@1695 2 k <- source <xml/>;
adam@1695 3 return <xml><button onclick={r <- rpc (test ()); set k r}/></xml>
adam@1695 4
adam@1695 5 fun main () : transaction page =
adam@1695 6 h <- test ();
adam@1695 7 return <xml><body>{h}</body></xml>