thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Slee <ms...@fb.com>
Subject RE: How to extend multiple Services?
Date Thu, 20 Sep 2012 18:04:33 GMT
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

Mime
View raw message