<div dir="ltr">Here is the associated stackoverflow question : <div><br><div><a href="https://stackoverflow.com/questions/47230123/how-to-associate-a-getter-setter-with-a-sml-structure/47230248#47230248">https://stackoverflow.com/questions/47230123/how-to-associate-a-getter-setter-with-a-sml-structure/47230248#47230248</a><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 10, 2017 at 1:19 PM, Nitin Surana <span dir="ltr"><<a href="mailto:nsurana@usc.edu" target="_blank">nsurana@usc.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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"><div><div class="h5">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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF"><span>
    <div class="m_4479742112499827087m_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></div></div>______________________________<wbr>_________________<br>
Ur mailing list<br>
<a href="mailto:Ur@impredicative.com" target="_blank">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.impr<wbr>edicative.com_cgi-2Dbin_mailma<wbr>n_listinfo_ur&d=DwIGaQ&c=clK7k<wbr>QUTWtAVEOVIgvi0NU5BOUHhpN0H8p7<wbr>CSfnc_gI&r=fRXDP9LYNqdFgci7lxN<wbr>2fw&m=X8Ib40TF-qUD7bakiyGU9t4R<wbr>AhizaUVZMC4hWQyT48Y&s=<wbr>rYoIQIsMrBs_ryXBiGe6ZvYAeF7m5G<wbr>ICNRlSuX__A7w&e=</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_4479742112499827087gmail_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><a href="tel:(323)%20690-6529" value="+13236906529" target="_blank">323-690-6529</a></div><div><br></div></div></div></div></div></div>
</font></span></div>
</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>