[Expat-discuss] Add const where possible?

Sebastian Pipping webmaster at hartwork.org
Mon Jun 4 13:10:59 CEST 2007


I remember seeing some places in Expat code
where adding a const would have been possible.
I mean for local variables, not in the interfaces.
Does anybody know bad effects of adding const modifiers?
On the pro side I see potentially helping the compiler
with optimizations and also making the code more
understandable. Any cons?

Thanks in advance,



Sebastian



More information about the Expat-discuss mailing list