Re: [IronPython] Implementing an IronPython extension mechanism with abstract classes

2010-09-06 Thread Michael Foord
On 06/09/2010 23:02, Curt Hagenlocher wrote: In order for the virtual methods to be forwarded to Python, the C# class that's generated by NewTypeMaker has to "bake in" code for all the methods. You could probably write some Python-based checking code that examines a Python class C and makes su

Re: [IronPython] Implementing an IronPython extension mechanism with abstract classes

2010-09-06 Thread Curt Hagenlocher
In order for the virtual methods to be forwarded to Python, the C# class that's generated by NewTypeMaker has to "bake in" code for all the methods. You could probably write some Python-based checking code that examines a Python class C and makes sure that all of the interfaces it derives from and

[IronPython] Implementing an IronPython extension mechanism with abstract classes

2010-09-06 Thread Michael Foord
Hello all, A friend was asking some advice about implementing an IronPython extension system for a C# application. He wanted to use C# abstract classes so that he would get an error attempting to instantiate a plugin class if it didn't implement all the required methods. (The extensions subc