소스 검색

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> { }