<div dir="ltr">Hi Adam<div><br></div><div>Thanks for responding. Is there any alternative to change the callback ? I want to trigger a urweb function defined within `let` block upon a javascript event. </div><div>Since, the function is within `let` block (because it needs access to certain variables within the parent function), I'm unable to use execF(...) from javascript.</div><div><br></div><div>Also, is `ref` not supported in urweb ?</div><div><br></div><div>Thanks</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 10, 2017 at 4:48 AM, Adam Chlipala <span dir="ltr"><<a href="mailto:adamc@csail.mit.edu" target="_blank">adamc@csail.mit.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><span class="">
<div class="m_5243511948070250283moz-cite-prefix">On 11/09/2017 10:42 PM, Harshita Kasera
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><span style="font-size:12.8px"></span>
<div style="font-size:12.8px">
<div style="font-size:12.8px">What I ultimately want to
achieve is to be able to change the callback function <i>debugMe</i>
at a later point of time. Is it possible to set or update
values within a structure at a later point of time?</div>
</div>
</div>
</blockquote>
<br></span>
No, module (structure) fields can't be modified at runtime in Ur/Web
or ML. Therefore, the module system is not the right tool for
runtime rewriting of callbacks.<br>
</div>
<br>______________________________<wbr>_________________<br>
Ur mailing list<br>
<a href="mailto:Ur@impredicative.com">Ur@impredicative.com</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.impredicative.com_cgi-2Dbin_mailman_listinfo_ur&d=DwIGaQ&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN0H8p7CSfnc_gI&r=fRXDP9LYNqdFgci7lxN2fw&m=X8Ib40TF-qUD7bakiyGU9t4RAhizaUVZMC4hWQyT48Y&s=rYoIQIsMrBs_ryXBiGe6ZvYAeF7m5GICNRlSuX__A7w&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.<wbr>com/v2/url?u=http-3A__www.<wbr>impredicative.com_cgi-2Dbin_<wbr>mailman_listinfo_ur&d=DwIGaQ&<wbr>c=<wbr>clK7kQUTWtAVEOVIgvi0NU5BOUHhpN<wbr>0H8p7CSfnc_gI&r=<wbr>fRXDP9LYNqdFgci7lxN2fw&m=<wbr>X8Ib40TF-<wbr>qUD7bakiyGU9t4RAhizaUVZMC4hWQy<wbr>T48Y&s=rYoIQIsMrBs_<wbr>ryXBiGe6ZvYAeF7m5GICNRlSuX__<wbr>A7w&e=</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Regards<div>Nitin Surana</div><div>MS Computer Science</div><div>323-690-6529</div><div><br></div></div></div></div></div></div>
</div>