<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2769" name=GENERATOR>
<STYLE>font-face {
        FONT-FAMILY: Batang
}
font-face {
        
}
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        COLOR: navy; FONT-FAMILY: Arial
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=blue link=blue>
<DIV dir=ltr align=left><SPAN class=128100819-15112005><FONT face=Verdana 
color=#800000 size=2>Either that (which I don't like very much the idea of 
adding keywords as it modifies the underlying language), or finding some way to 
express that the class I am deriving from .NET class should be sealed. That 
should get us there also, even though the code to do events would probably not 
be as slick as it is in C#.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=128100819-15112005><FONT face=Verdana 
color=#800000 size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=128100819-15112005><FONT face=Verdana 
color=#800000 size=2>Martin</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Keith J. Farmer 
[mailto:users-bounces@lists.ironpython.com] <B>On Behalf Of </B>Keith J. 
Farmer<BR><B>Sent:</B> Monday, November 14, 2005 6:00 PM<BR><B>To:</B> 
Discussion of IronPython<BR><B>Subject:</B> RE: [IronPython] .NET Events in 
IronPython<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV id=idOWAReplyText97946 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>You'd need to add an event 
keyword, or some other marker, wouldn't you?&nbsp; Otherwise you don't know that 
it should be an event rather than some other property.</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> users-bounces@lists.ironpython.com on 
behalf of Martin Maly<BR><B>Sent:</B> Mon 11/14/2005 5:23 PM<BR><B>To:</B> 
Discussion of IronPython<BR><B>Subject:</B> Re: [IronPython] .NET Events in 
IronPython<BR></FONT><BR></DIV>
<DIV>
<DIV dir=ltr align=left><SPAN class=564511601-15112005><FONT face=Verdana 
color=#800000 size=2>After playing with this for a bit, I think that at the 
moment IronPython is not capable of what you can do below in C#. The 
insurmountable (for now, I hope) obsctacle that I hit is that the events must be 
sealed classes, inherited from an abstract MulticastDelegate. IronPython doesn't 
know of this rule and for now doesn't generate sealed class and the IronPython 
code that attempts to mimic the output of C# compiler throws exception "delegate 
must be a sealed class".</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=564511601-15112005><FONT face=Verdana 
color=#800000 size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=564511601-15112005><FONT face=Verdana 
color=#800000 size=2>I think that as we improve the 'static compiler' story, we 
may need to support creating sealed classes. For now, the scenario below is 
broken...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=564511601-15112005><FONT face=Verdana 
color=#800000 size=2></FONT></SPAN>&nbsp;</DIV></DIV></BODY></HTML>