Explorar o código

Arrays now haxe one function with a dynamic return value - map

Hugh Sanderson %!s(int64=12) %!d(string=hai) anos
pai
achega
b8b99bc716
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      gencpp.ml

+ 1 - 1
gencpp.ml

@@ -941,7 +941,7 @@ and is_dynamic_member_lookup_in_cpp ctx field_object member =
 				with Not_found -> true
    )
 and is_dynamic_member_return_in_cpp ctx field_object member =
-	if (is_array field_object.etype) then false else
+	if (is_array field_object.etype) then member="map" else
 	if (is_internal_member member) then false else
    match field_object.eexpr with
    | TTypeExpr t ->