James G. Sack (jim) wrote:
Perhaps I'm remembering wrong, but T I think there were discussions once
before that interfacing different libraries could be annoying when
functions treated a parm as const but didn't include const in the
prototype -- I guess it might be common in oldish libs? Or maybe the
annoyance came about when libs got updated to include the const, thereby
breaking existing code? Or ...?
Oh yeah, that is horribly annoying. I guess I view that as a problem
from a *lack* of const, rather than a problem with const. Fortunately
const_cast makes it pretty easy to document when that happens.
--Chris
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg