[Tutor] Tuples, Dictionarys and mutable vs. immutable

Sheila King sheila@thinkspot.net
Sun, 25 Feb 2001 21:25:07 -0800


On Sun, 25 Feb 2001 23:49:53 -0500, Rick Pasotto <rick@niof.net>  wrote about
Re: [Tutor] Tuples, Dictionarys and mutable vs. immutable:

:
:'mytuple' is a *name*. First it is the name of a tuple and then it is
:the name of a string. "The map is not the territory." It is the *object*
:that 'mytuple' names when it is the name of a tuple that is immutable.

Yes, OK. I can get used to this. I'm just used to strongly typed programming
languages like Pascal. You could never change the type that a variable
identifier referred to during a program. And the slot in the memory where the
object is stored would be a different location if you did something like what
I tried above, having two different "local" variables, and then assigning the
value of one to another. It would be the same value, but stored in two
different memory locations. Rather than having one object, with two different
variable names referring to the same memory location. 

I guess it will just take some getting used to.


--
Sheila King
http://www.thinkspot.net/sheila/
http://www.k12groups.org/