[pypy-svn] r29514 - pypy/dist/pypy/translator/cli

antocuni at codespeak.net antocuni at codespeak.net
Fri Jun 30 00:36:21 CEST 2006


Author: antocuni
Date: Fri Jun 30 00:36:17 2006
New Revision: 29514

Modified:
   pypy/dist/pypy/translator/cli/database.py
Log:
Microsoft .NET wants delegate types to be sealed



Modified: pypy/dist/pypy/translator/cli/database.py
==============================================================================
--- pypy/dist/pypy/translator/cli/database.py	(original)
+++ pypy/dist/pypy/translator/cli/database.py	Fri Jun 30 00:36:17 2006
@@ -92,7 +92,7 @@
 
     def gen_delegate_types(self, ilasm):
         for TYPE, name in self.delegates.iteritems():
-            ilasm.begin_class(name, '[mscorlib]System.MulticastDelegate')
+            ilasm.begin_class(name, '[mscorlib]System.MulticastDelegate', sealed=True)
             ilasm.begin_function('.ctor',
                                  [('object', "'object'"), ('native int', "'method'")],
                                  'void',



More information about the Pypy-commit mailing list