You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@thrift.apache.org by Tarun Goyal <jo...@gmail.com> on 2012/09/20 08:14:55 UTC

How to extend multiple Services?

Hey,

How to extend multiple services in one service?

service IBase{

    void ping(),
    int test(),

}

service ID1 extends IBase{
    int test(),
    void add(),


}
service ID2 extends IBase{
int test(),
void multiply(),
}


service ID3 extends ID1, extends ID2 {
int test(),

}


When i am compiling it. It is throwing errors. Cant we extend multiple
services?



Thanks,
Tarun

Re: How to extend multiple Services?

Posted by Tarun Goyal <jo...@gmail.com>.
Thanks Mark for the Reply!!!!!!!


On Thu, Sep 20, 2012 at 11:34 PM, Mark Slee <ms...@fb.com> wrote:

> This is not supported, Thrift does not implement multiple inheritance.
> ________________________________________
> From: Tarun Goyal [join2tarun@gmail.com]
> Sent: Wednesday, September 19, 2012 11:14 PM
> To: user@thrift.apache.org
> Subject: How to extend multiple Services?
>
> Hey,
>
> How to extend multiple services in one service?
>
> service IBase{
>
>     void ping(),
>     int test(),
>
> }
>
> service ID1 extends IBase{
>     int test(),
>     void add(),
>
>
> }
> service ID2 extends IBase{
> int test(),
> void multiply(),
> }
>
>
> service ID3 extends ID1, extends ID2 {
> int test(),
>
> }
>
>
> When i am compiling it. It is throwing errors. Cant we extend multiple
> services?
>
>
>
> Thanks,
> Tarun
>

RE: How to extend multiple Services?

Posted by Mark Slee <ms...@fb.com>.
This is not supported, Thrift does not implement multiple inheritance.
________________________________________
From: Tarun Goyal [join2tarun@gmail.com]
Sent: Wednesday, September 19, 2012 11:14 PM
To: user@thrift.apache.org
Subject: How to extend multiple Services?

Hey,

How to extend multiple services in one service?

service IBase{

    void ping(),
    int test(),

}

service ID1 extends IBase{
    int test(),
    void add(),


}
service ID2 extends IBase{
int test(),
void multiply(),
}


service ID3 extends ID1, extends ID2 {
int test(),

}


When i am compiling it. It is throwing errors. Cant we extend multiple
services?



Thanks,
Tarun