That's a very interesting idea. We might want to still combine that w/ exposing names when there are no collisions, but making interfaces return an interface proxy would provide an easy way when that breaks down. I've added this idea to the bug we have for this (1506, http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=1506).
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sanghyeon Seo Sent: Friday, October 20, 2006 6:29 AM To: Discussion of IronPython Subject: Re: [IronPython] Intefaces 2006/10/20, Dino Viehland <[EMAIL PROTECTED]>: 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 _______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com _______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
