Thanks, Barry.  The doc has been updated to restore the const formal
parameters as we discussed last week, but it's good to know that your
initial concerns have been addressed by your experiments.

Bill


On Mon, Sep 8, 2014 at 7:37 PM, Barry Spinney <[email protected]> wrote:

>
>
> Sorry, I took so long to send this, but based on my experiments and
> research I think it
>
> should present no problems to have const formal parameters.
>
>
>
> The real problem with const comes from trying to use it for local and
> global variables.
>
> In this case, const objects need to be passed to const formal parameters.
> On the
>
> other hand, both  regular modifiable objects and const objects alike can
> be passed to const
>
> formal parameters without any casts – since const parameters do not
> constrain the callers,
>
> but instead constrain the body of the function with the const formal to
> not allow it
>
> to try to change it.
>
>
>
> If this isn’t clear enough, I can probably augment this explanation in the
> next few days
>
> (upon request from the group).
>
>
>
> Thanx Barry.
>
>
>
> _______________________________________________
> lng-odp mailing list
> [email protected]
> http://lists.linaro.org/mailman/listinfo/lng-odp
>
>
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to