瀏覽代碼

mention ArrayAccess restriction (closes #4632)

Simon Krajewski 9 年之前
父節點
當前提交
15b95e19f2
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      std/StdTypes.hx

+ 4 - 0
std/StdTypes.hx

@@ -115,5 +115,9 @@ typedef Iterable<T> = {
 /**
 	ArrayAccess is used to indicate a class that can be accessed using brackets.
 	The type parameter represents the type of the elements stored.
+
+	This interface should be used for externs only. Haxe does not support custom
+	array access on classes. However, array access can be implemented for
+	abstract types (see http://haxe.org/manual/types-abstract-array-access.html).
 **/
 extern interface ArrayAccess<T> { }