[Vm-dev] A question from VM-beginners list

Mateusz Grotek unoduetre at poczta.onet.pl
Wed Mar 26 18:19:08 UTC 2014

I asked the following in the VM-beginners list, but got no responses. So
I'm trying here. Thanks!

Dear VM specialists,

I have the following question concerning the proposed (is it already
implemented?) become implementation:

How does this implementation prevent forming long chains of redirections?

Let's say I have a variable V1 pointing to an object O1. (V1 -> O1).
I have another variable V2 pointing to an object O2. (V2 -> O2).
After that I do: V1 becomeForward: V2.
Now O1 points to O2, so I have V1 -> O1 -> O2
Now I assign to V2 an object O3: (V2 -> O3)
And again do:
V1 becomeForward: V2.

So I have: V1 -> O1 -> O2 -> O3

I do it a couple of times. Now I have a long chain of redirections:
V1 -> O1 -> O2 -> O3 -> O4 -> O5 -> .... -> ON

If I save my image it gets saved inside it. So the longer I use my image
the longer the chain is. In the end it's longer than my memory and the
image crashes.

What am I missing?

Yours sincerely,
Mateusz Grotek

More information about the Vm-dev mailing list