[Python-Dev] Opinions on const-correctness? (original) (raw)
Martin v. Loewis martin@v.loewis.de
13 Mar 2002 08:12:04 +0100
- Previous message: [Python-Dev] Opinions on const-correctness?
- Next message: [Python-Dev] Opinions on const-correctness?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"David Abrahams" <david.abrahams@rcn.com> writes:
Only if you change the strings /returned/ by Python (or structure members) to const char*. Changing your parameters to const char* won't hurt anybody.
It sure will. Inside the functions you change, you may not be able to use the argument as before. In particular, you may not be able to call functions from the standard C library anymore.
Regards, Martin
- Previous message: [Python-Dev] Opinions on const-correctness?
- Next message: [Python-Dev] Opinions on const-correctness?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]