From 54d465b61ff86461d16f3771d054d131d370a09c Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Fri, 24 Feb 2006 01:37:15 +0000 Subject: [PATCH] More notes. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3889 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/README.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/as/com/threerings/README.txt b/src/as/com/threerings/README.txt index 2b9c71b21..7dda8297c 100644 --- a/src/as/com/threerings/README.txt +++ b/src/as/com/threerings/README.txt @@ -14,6 +14,18 @@ Design decisions - We could use the setter methods on DObject properties to generate dobj events, but so far I haven't gone there. +- We need a realistic HashMap implementation. Using Object properties + (a-la my SimpleMap) is not going to cut it because keys must always + be Strings and there's no way to *really* remove a value from an Object + (you can set the property to null, but now the property is forever defined: + the key is not cleared) + + mx.utils.UIDUtil.getUID() can be used to generate a (huge) unique String + for any object for use as a key or something. + + It might be worth waiting, I think it's very probable that Adobe will + add in a Hashtable class to the standard libraries... + Notes ----- @@ -111,3 +123,8 @@ Actionscript // o is now undefined, because we accessed array element "1.5". // I think arrays are just hashes, so probably you could store // values at element 1.5 if you desired... + +- Similarly, methods in String take Number arguments (wha?) when for character + index positions. Totally nonsensical. + +- Hey! Array has two constructors! How can I do that?