[DGD] Some questions
Noah Lee Gibbs
angelbob at monkeyspeak.com
Tue Apr 1 01:52:16 CEST 2003
On Mon, 31 Mar 2003, Ben Chambers wrote:
> Also, in Design Patterns there a concept known as a flyweight.
Hm. My answer was a little unclear on one point. The reason you can't
just save a pointer to the string everywhere (thus having all the objects
share a single instance of the string) is that at the end of every thread,
DGD copies any references that are hanging around in objects but aren't
"from" those objects.
So mappings, arrays and LWOs all get copied if they're referenced from
other objects. It's kinda weird semantics -- they're call-by-reference
when you first see them, but if you store them for later then they become
your own little personal copies, and thus effectively call-by-value.
--
angelbob at monkeyspeak.com
See my page of DGD documentation at
"http://phantasmal.sourceforge.net/DGD/"
If you post to the DGD list, you may see yourself there!
_________________________________________________________________
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list