Full Closures - when do they close?

Jesse Welton jwelton at pacific.mps.ohio-state.edu
Sun Jan 30 14:47:36 UTC 2000


Robert Withers wrote:
> 
> Are there any special rules for the internal state of an external value
> binding? My guess is that if you don't change the value of the outer
> reference, yet you modify the internal state of that object, then the
> closure binding to that value will refer to the object which had it's
> internal state modified.  Is this the case?

Yes.  The bindings just hold onto the object references, so internal
state is shared as in any case where two variables are bound to the
same object reference.

-Jesse





More information about the Squeak-dev mailing list