axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Haszlakiewicz, Eric" <>
Subject RE: Proposal: Using const in generated code
Date Mon, 24 Nov 2008 19:19:20 GMT

>-----Original Message-----
>From: Samisa Abeysinghe [] 
>Sent: Friday, November 14, 2008 7:50 AM
>To: Apache AXIS C Developers List
>Subject: Re: Proposal: Using const in generated code
>It is a useful  suggestion. Would you like to provide a patch?

There already are a couple that address (portions of?) this: and


>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:
For additional commands, e-mail:

View raw message