[Tutor] scope question
Norvell Spearman
norvell@houseofspearman.org
Wed Jan 15 20:33:04 2003
On Wednesday, 2003.01.15, 16:27:28 -0700, Poor Yorick wrote:
> Not sure exactly what you mean. You can often use the return value of a
> function to modify something. For example:
I was using terminology from the ``Think'' tutorial. A pure function is
like a mathematical function: f(x) = x**2 returns a value without
modifying x.
> No, bar and bam are now identifiers for the sam object in memory, and
> that is the only object you are going to be changing. Within the scope
> of the function, you have effectively lost your handle to the object
> passed in as parameter "bar".
Ah. Thanks.
--
Norvell Spearman