Browse Source

mention ArrayAccess restriction (closes #4632)

Simon Krajewski 9 năm trước cách đây
mục cha
commit
15b95e19f2
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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.
 	ArrayAccess is used to indicate a class that can be accessed using brackets.
 	The type parameter represents the type of the elements stored.
 	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> { }
 extern interface ArrayAccess<T> { }