Python is just as good as C++ for real apps
jkraska at san.rr.com
Sat Jan 26 01:39:50 CET 2002
>Think of it as meaning that *p is of type int rathing than p is
>of type int*, and then it makes a bit more sense.
Only in that context. In other contexts, thinking of it that
way is nonsensical. For example, when you do ++, tell me how much
is added to it again? How about sizeof?. int* doesn't _behave_
like an int. It behaves like a pointer, which so happens can be
safely and without-casting be evaluated to an int.
It's not like it's a big deal, really. And I understand that there
was a requirement for backward comparability with C.
More information about the Python-list