<div><span class="gmail_quote">On 10/25/07, <b class="gmail_sendername">Dermot Hogan</b> <<a href="mailto:lists@ruby-forum.com">lists@ruby-forum.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">You can't say<br><br>x = new EventHandler(mymethod)</blockquote>
<div> </div>
<div>I was trying to avoid writing this, but my inner pedant simply won't let go. There's a difference between delegates and events. A delegate is simply a bound function pointer, and it's perfectly legal to do a straightforward assignment as above. An event is basically a published endpoint to which you subscribe and unsubscribe by adding and removing your delegate. The two are obviously related but not the same, and what we seem to be talking about here specifically involves events.
</div>
<div> </div>
<div>I feel much better now. :)</div>
<div> </div>
<div>--</div>
<div>Curt Hagenlocher</div>
<div><a href="mailto:curt@hagenlocher.org">curt@hagenlocher.org</a></div></div>