title: DWScript: using an event in an exposed Delphi class
body: <p>I exposed a Delphi class to the scripts using <code>TdwsUnit.ExposeRTTI</code> method. It works very well with basic data types.</p>
  
  <p>However it doesn't work when I add a <code>TNotifyEvent</code>. My Delphi class has an <code>OnChange : TNotifyEvent</code> property and when assigning this <code>OnChage</code> in a script, I get an error </p>
  
  <pre><code>"Syntax Error: More arguments expected!"
  </code></pre>
  
  <p>It looks like the script compiler understand I want to call the event Handler instead of assigning the <code>OnChange</code> property. Add an <code>"@"</code> sign doesn't help.</p>
  
  <p>How can my Delphi object have an event Handler having his handler code in a script ?</p>
  
  <p>Regards.</p>