Object ID's

Peter Hall peter.hall at memorphic.com
Wed Mar 21 07:50:23 PDT 2007


On 3/21/07, Peter Hall <peter.hall at memorphic.com> wrote:
> FWIW, The standard Flex Framework contains the string "new Dictionary"
> 19 times, of which 10 are weak keyed.
>

Here are some examples of those usages:


CSSStyleDeclaration uses it to keep track of clones of itself, so it
can update them after changes to itself. The clones are created to be
inserted into prototype chains of other CSSStyleDeclarations, which is
how styles are inherited to subclasses.

To cache the result of expensive operations (eg
HierarchicalCollectionView and DefaultDataDescriptor)

To implement unique ids. (uids are mainly used in list controls and
collections).

To implement a simple weak reference. (eg ModuleManager)


Peter



More information about the Es4-discuss mailing list