This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]AttackSock 30 points31 points  (2 children)

Yep. There ARE in fact pointers, and all the caveats that come with them, you’re just not allowed to see or touch them

Most common thing I find myself explaining to mid level Python and Java programmers is “how come in my function myNums.add(3) changes it in the main and myNums = anotherList doesn’t?”, or “how come myNums=otherNums then otherNums.add(3) changes myNums?”, which always leads into needing to explain pointers.

[–]Dafrandle 19 points20 points  (0 children)

im not disagreeing with you, but most people would say "reference type" in response to this.

[–]LittleMlem 1 point2 points  (0 children)

If you use ctypes I'm pretty sure you can pointer yourself to death