Added another note about a 'gotcha' in actionscript.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3879 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-02-22 14:02:42 +00:00
parent 5a9a018867
commit 990d0b840f
+8
View File
@@ -103,3 +103,11 @@ Actionscript
SO: if you want a method to be accessable to a subclass in a different
package, it must be public!
- Beware of integer math:
var i :int = 3;
var o :Object = someArray[i / 2];
// 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...