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

Reply via email to