Chris Angelico <ros...@gmail.com>: > That shows that the Java '==' operator is like the Python 'is' > operator, and checks for object identity. You haven't manipulated > pointers at all. In contrast, here's a C program that actually > MANIPULATES pointers: > > [...] > > You can't do this with Python, since pointer arithmetic fundamentally > doesn't exist. You can in C. Can you in Java?
You can't do it in Pascal, either, but Pascal definitely has pointers. Pointer arithmetics is not an essential part of C. One could argue that it was a mistake to include it in the language. Marko -- https://mail.python.org/mailman/listinfo/python-list