Re: [Ironruby-core] Problem calling explicit interface methods

2009-01-08 Thread Shri Borde
ry 08, 2009 8:05 AM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Problem calling explicit interface methods I'm not convinced this is exactly a bug. There is no public 'bar' method on Cls after all. I think IronPython would require you to say something like

Re: [Ironruby-core] Problem calling explicit interface methods

2009-01-08 Thread Tomas Matousek
] Problem calling explicit interface methods Curious, how it is expected to work (or nobody thinked it over yet?) Example to consider: - - - - public interface IFoo1 { void Bar(); } public interface IFoo2 { void Bar(); } public class Cls : IFoo1

Re: [Ironruby-core] Problem calling explicit interface methods

2009-01-08 Thread Alex 2k8
Curious, how it is expected to work (or nobody thinked it over yet?) Example to consider: - - - - public interface IFoo1 { void Bar(); } public interface IFoo2 { void Bar(); } public class Cls : IFoo1, IFoo2 { void IFoo1.Bar() {}

Re: [Ironruby-core] Problem calling explicit interface methods

2009-01-08 Thread Tomas Matousek
: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Problem calling explicit interface methods I'm not convinced this is exactly a bug. There is no public 'bar' method on Cls after all. I think IronPython would require you to say something like App::IFoo::bar(App::Cls.new()) i

Re: [Ironruby-core] Problem calling explicit interface methods

2009-01-08 Thread Curt Hagenlocher
nruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Tomas Matousek Sent: Thursday, January 08, 2009 7:56 AM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Problem calling explicit interface methods Filed bug #23494. Tomas -Original Message- From: iro

Re: [Ironruby-core] Problem calling explicit interface methods

2009-01-08 Thread Tomas Matousek
Filed bug #23494. Tomas -Original Message- From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Alex 2k8 Sent: Thursday, January 08, 2009 2:25 AM To: ironruby-core@rubyforge.org Subject: [Ironruby-core] Problem calling explicit interface

[Ironruby-core] Problem calling explicit interface methods

2009-01-08 Thread Alex 2k8
Hello, I am trying to call explicitly implemented interface method, but get such error undefined method `bar' for # C# code: public interface IFoo { void Bar(); } public class Cls : IFoo { void IFoo.Bar() { } } Ruby code: x = App::Cls.new x.bar