[Tutor] data sharing
Kristoffer Erlandsson
krier115@student.liu.se
Tue Apr 15 07:44:01 2003
<snip>
> Keep in mind that they now have different copies of the text, so if you
> update the text the a object it will not get updated in the other
> objects. As I understood it this was what you were after, but of course
> I could be mistaken :)
Just have to add a bit to this. I blatantly assumed that you data was a
large string, in which case the changed wouldn't show at the other
objects. However, if you have a mutable object (lika a list), the
changed _will_ show at the other objects too. A thing to certainly keep
in mind. Sorry for the confusion.
Regards,
Kristoffer
--
Kristoffer Erlandsson
E-mail: krier115@student.liu.se
ICQ#: 378225