For me, going from Pascal, to basic,c,cobol,fortran . . was not that
All those language are traditional architecture. A variable name is
tied to a physical/unchanging memory addresses, and
a = b
means "look into the box at the address of b, make a copy of the
contents, and put that copy into the box at address of a (trash anything
that had been at a)"
Even pointer variables work this way, as one must explicitly code to
dereference
a = b^ (If I recall 30 year old Pascal)
says "look into the box at address of b, use the contents as another
address, look into the box at THAT address, and copy...."
difficult. Python, however, feels strange.
Python reverses this concept. In Python, the objects themselves do
not move, but rather the addresses associated with the variable name
moves -- so an object can have multiple names associated, and assignment
moves the name without affecting the "left behind" object.
--
Wulfraed Dennis Lee Bieber KD6MOG
(e-mail address removed) (e-mail address removed)
HTTP://wlfraed.home.netcom.com/
(Bestiaria Support Staff: (e-mail address removed))
HTTP://www.bestiaria.com/