[IronPython] IronLanguages
Dino Viehland
dinov at microsoft.com
Tue Mar 29 21:52:00 CEST 2011
Matthias wrote:
> Yes, this was my main idea. It's very similar how SWIG directors handle
> cross-language polymorphism. At runtime I'd create a class which derives
> from TestClass and which overrides all virtual methods and properties.
> The C# overrides would call the JSObject to see if there's a javascript
> implementation for them. If there is, it will call the javascript implementation,
> otherwise it will call the base class's (TestClass in the example) implementation.
Ok, then you totally want to look at NewTypeMaker in either IronRuby or IronPython
- they're slightly different but they both do the same thing and already handle all
sorts of corner cases w/ .NET types so it should be a good starting point.
More information about the Ironpython-users
mailing list