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
[email protected]
+44 (0) 7525 01 09 01