[IronPython] .NET Events in IronPython

Keith J. Farmer kfarmer at thuban.org
Tue Nov 15 02:59:34 CET 2005

You'd need to add an event keyword, or some other marker, wouldn't you?  Otherwise you don't know that it should be an event rather than some other property.


From: users-bounces at lists.ironpython.com on behalf of Martin Maly
Sent: Mon 11/14/2005 5:23 PM
To: Discussion of IronPython
Subject: Re: [IronPython] .NET Events in IronPython

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".
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...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 4455 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20051114/b4549b05/attachment.bin>

More information about the Ironpython-users mailing list