Re: Abstract Interface
Felipe Magno de Almeida <eu <at> felipemagno.com.br>
2011-12-06 15:37:44 GMT
And also the example that shows the problem.
On Tue, Dec 6, 2011 at 1:25 PM, Felipe Magno de Almeida
<eu <at> felipemagno.com.br> wrote:
> Hello,
>
> I'm attaching a patch which fixes the issue.
> Debugging the problem, I found that though the stub is constructed
> correctly for the abstract interface while returning both a data type
> and an interface, the _downcast defined in the stub assumes a derived
> stub is constructed. Which might not be the case, and it isn't with an
> abstract interface since its derived type isn't yet known.
>
> The fix is to return this on _to_object when the stub is constructed.
> This doesn't break _to_object() == 0 for data types and fixes the
> problem when returning a interface. In the patch I removed the
> _to_object definition in the concrete stub since it makes the binding
> ambiguous because of virtual inheritance, and is unecessary since the
> base does the same thing.
>
> Any comments are appretiated.
> Regards,
>
> On Thu, Oct 27, 2011 at 7:45 PM, Felipe Magno de Almeida
> <eu <at> felipemagno.com.br> wrote:
>> Hello,
>>
>> I'm trying the following IDL:
>>
>> abstract interface DataView {
(Continue reading)