thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Duxbury <br...@rapleaf.com>
Subject Re: Optional method arguments?
Date Mon, 10 Aug 2009 16:05:30 GMT
I don't think optional args are supported. If you need optional args,  
the easiest way to do it is with by creating a struct that contains  
optional fields and using that as the only parameter to your method.

-Bryan

On Aug 10, 2009, at 7:27 AM, Phillip B Oldham wrote:

> I'm currently using Thrift (version 20080411-r788695M) and, based on
> section 15 (field) of the IDL[1], I'm filling out the "FieldReq?" part
> of the definition. Currently, doing this throws errors:
>
> "optional keyword is ignored in argument lists."
>
> My question is: is the optional keyword obeyed in releases after the
> one I'm currently using? If not, will it be obeyed in later releases?
>
> [1] http://wiki.apache.org/thrift/ThriftIDL#head- 
> a41576ae20feb3621d43c0820d9376fddfda73e5
>
> -- 
> Phillip B Oldham
> phillip.oldham@gmail.com
> +44 (0) 7525 01 09 01


Mime
View raw message