Re: Interface problems

2011-01-28 Thread Steven Schveighoffer
On Thu, 27 Jan 2011 09:26:28 -0500, Stanislav Blinov wrote: 26.01.2011 16:54, Steven Schveighoffer пишет: This is hardly a solution. He wants to do value comparison, not identity comparison. The real fix is to make interface assume it is an Object, so it can be implicitly cast to Obj

Re: Interface problems

2011-01-27 Thread Stanislav Blinov
On 01/27/2011 09:27 PM, Mandeep Singh Brar wrote: 26.01.2011 16:54, Steven Schveighoffer пишет: This is hardly a solution. He wants to do value comparison, not identity comparison. The real fix is to make interface assume it is an Object, so it can be implicitly cast to Object, and find anoth

Re: Interface problems

2011-01-27 Thread Mandeep Singh Brar
26.01.2011 16:54, Steven Schveighoffer пишет: > > This is hardly a solution. He wants to do value comparison, not > identity comparison. > > The real fix is to make interface assume it is an Object, so it can be > implicitly cast to Object, and find another way to implement COM > interfaces. The

Re: Interface problems

2011-01-27 Thread Stanislav Blinov
26.01.2011 16:54, Steven Schveighoffer пишет: This is hardly a solution. He wants to do value comparison, not identity comparison. The real fix is to make interface assume it is an Object, so it can be implicitly cast to Object, and find another way to implement COM interfaces. The COM in

Re: Interface problems

2011-01-26 Thread Steven Schveighoffer
On Wed, 26 Jan 2011 05:12:39 -0500, Dmitry Olshansky wrote: On 26.01.2011 8:12, Mandeep Singh Brar wrote: Mandeep Singh Brar: I am not able to: - find indexOf interface in an interface range using std.algorithm. I don't understand. Please explain better. In the following snippet: I

Re: Interface problems

2011-01-26 Thread Dmitry Olshansky
On 26.01.2011 8:12, Mandeep Singh Brar wrote: Mandeep Singh Brar: I am not able to: - find indexOf interface in an interface range using std.algorithm. I don't understand. Please explain better. In the following snippet: Interface interfaceA{} class C:interfaceA{} class D:in

Re: Interface problems

2011-01-25 Thread Mandeep Singh Brar
Mandeep Singh Brar: > I am not able to: > > - find indexOf interface in an interface range using std.algorithm. > I don't understand. Please explain better. In the following snippet: Interface interfaceA{} class C:interfaceA{} class D:interfaceA{} interfaceA[] registry;

Re: Interface problems

2011-01-25 Thread bearophile
Mandeep Singh Brar: > I am not able to: > > - find indexOf interface in an interface range using std.algorithm. I don't understand. Please explain better. > - compare interface objects What kind of comparisons do you need to perform and why? > - assign interface to generic objects. Why do

Interface problems

2011-01-25 Thread Mandeep Singh Brar
Hi, Not a question but just raising a concern i am facing again and again. The current implementation of interfaces seem to be creating a number of problems. I am not able to: - find indexOf interface in an interface range using std.algorithm. - compare interface objects - assign interface to ge