<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 01.06.2020 14:21, Gabriel Ivăncescu
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:d6605760-3b66-2bac-45ef-60df38146542@gmail.com">
      <blockquote type="cite" style="color: #000000;"><br>
        Or maybe script module should just store ScriptHost reference.
        <br>
        <br>
      </blockquote>
      <br>
      It wouldn't change much and we need a ref to the control anyway
      (to start the script for example).</blockquote>
    <p><br>
    </p>
    <p>I would need a deeper look to be sure, but it seems to me that it
      would solve all your problems by not having to store control
      reference in modules. Starting script doesn't really need control.
      It currently needs it only to access script host and check control
      state. Control state could be reworked to not require it
      (test_State() on emulated script engine would be interesting for
      such rework).</p>
    <p><br>
    </p>
    <p>Thanks,</p>
    <p>Jacek<br>
    </p>
  </body>
</html>