[IronPython] Intefaces

Sanghyeon Seo sanxiyn at gmail.com
Fri Oct 20 15:29:01 CEST 2006


2006/10/20, Dino Viehland <dinov at exchange.microsoft.com>:
Long term we also want to expose these in a more natural way.
Unfortunately we struggled with coming up with a rational way to deal
w/ collisions and other corner cases and so we punted on this for v1.0
(and what C# exposes here isn't everything the CLR supports, making it
even more fun to get the right answer!)

How about this? Currently:

IFooBar.Foo(object, arg)
IFooBar.Bar.GetValue(object)
IFooBar.Bar.SetValue(object, value)

To:

wrapper = IFooBar(object)
wrapper.Foo(arg)
wrapper.Bar
wrapper.Bar = value

-- 
Seo Sanghyeon



More information about the Ironpython-users mailing list