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: [EMAIL PROTECTED] 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...
<<winmail.dat>>
_______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
