[Ur] java-script calls are optimised out

Sergey Mironov grrwlf at gmail.com
Wed Oct 2 09:45:39 EDT 2013


I've encountered another problem, this time it looks bigger one.

I have two FFIed javascript functions like

val init1 : css_class -> transaction unit
val init2 : css_class -> transaction unit

When I try to call both of them from onload, but only one is called
(the second one)

fun main {} = return <xml><head/><body onload={init1 c1 ; init2 c2}>
Body </body></xml>

I've tried to insert (alert "foo") in various places, looks like only
FFIed funcs are missing. I mean that

fun main {} = return <xml><head/><body onload={alert "aa" ; alert
"bb"}> Body </body></xml>

shows both alerts.

Note, that it isn't real code, it will take some time for me to write
illustrating example. Is it known problem?

Regards,
Sergey



More information about the Ur mailing list