>-----Original Message----- >From: Samisa Abeysinghe [mailto:[EMAIL PROTECTED] >Sent: Friday, November 14, 2008 7:50 AM >To: Apache AXIS C Developers List >Subject: Re: Proposal: Using const in generated code > >+1. >It is a useful suggestion. Would you like to provide a patch? >
There already are a couple that address (portions of?) this: https://issues.apache.org/jira/browse/AXIS2C-1280 and https://issues.apache.org/jira/browse/AXIS2C-1271 eric >Patrick van Beem wrote: >> Hello, >> >> In the generated code in axis2_stub_..., the axis2_char_t* >type arguments used for axsi2_stub_create_... are defined >non-const, while they're only used const (and the nature of >the parameters just screams for const). This leads to >unnecessary const_casts in code using these functions. >Wouldn't it be better to generate const axis2_char_t* arguments here? >> >> axis2_stub_t* >> axis2_stub_create_Calculator(const axutil_env_t *env, >> axis2_char_t *client_home, >> axis2_char_t *endpoint_uri) >> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]