From dev-return-5231-archive-asf-public=cust-asf.ponee.io@royale.apache.org Fri Jun 29 10:13:08 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id A692C180663 for ; Fri, 29 Jun 2018 10:13:07 +0200 (CEST) Received: (qmail 38959 invoked by uid 500); 29 Jun 2018 08:13:06 -0000 Mailing-List: contact dev-help@royale.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@royale.apache.org Delivered-To: mailing list dev@royale.apache.org Received: (qmail 38947 invoked by uid 99); 29 Jun 2018 08:13:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jun 2018 08:13:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 93EA71A04E8 for ; Fri, 29 Jun 2018 08:13:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.131 X-Spam-Level: X-Spam-Status: No, score=-0.131 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id iSd_WZMBGQjx for ; Fri, 29 Jun 2018 08:13:04 +0000 (UTC) Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 2A7A260DA6 for ; Fri, 29 Jun 2018 08:13:03 +0000 (UTC) Received: by mail-wm0-f67.google.com with SMTP id b188-v6so1187569wme.3 for ; Fri, 29 Jun 2018 01:13:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=obb97/777UPv/ujpWshgMvK5wE3zLX9tGGgJT81p02k=; b=kN9UpFTjj8Mz6s6N/zLTrTgAJzT37n3K41NIu/dH68Xe76RJIxZ48AYyppwuqw8Ygn 56i04Pdex3zYucbS5UFp288bFQGqwjlzo6eC48TrPZCl7uGVKNe6BEzyU5J7arCY+tjC yu1MO51gxQ+UMXZAVWCnBwa8tbd57+dTTUfgtnsehCvdyW6Kv3aRoIHxATpGzjxRetvM 5sjfGF064yUUukGZcck1DTg/ivLFqC5xCaL1jebDHBQUN5BYF5kTg0h1tN7Okm4HRccJ 5XEkv2EPBu++JTO2f7E39Zdn/qvT+jj56eQwKKSkUiPjP5etnJ0rtTts8irJWY7eLtMx Ad4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=obb97/777UPv/ujpWshgMvK5wE3zLX9tGGgJT81p02k=; b=a4WLRymy3/gvtEdO5mc0YrzznKq/m297xHuOcwfo0d+3vTXYkeSwYcZFKoM+NPxffv +GldT8JNG4mOy7WKiRGvvu3fYcsvz+ACn0w/YU1Zb8wKqh5oJkVmA3Guky3whXtr7dJm HcLYUybxx7Rd0nYfcnkOu873vKdMtlx6dIfIvwcfs+/eoCAL2p6B9CiWfJUvyphvieZY 5Al2LU1uJwxY26kjRQgoyHDLp7mAz97kdK/yjRsTeiChNmE1kw4UmCPKk4lLxWa+4hKj X/cSe/GF+rmbPXQEKDf+yKoRqEaCUHb7JfDc45RAUQi/ZF3j+j99ex5lYgeMCvKu7sgz 7pZQ== X-Gm-Message-State: APt69E06h3WsnKau9MLNuWTsqscqDPe2jGhdlUWEJ/XXSFtLePTGcLR6 xm5d3M1FlW+U8e3eKwHNeMEI8wvN X-Google-Smtp-Source: AAOMgpdUUE230bexLubrz0wwcrKWdNdVUQ4E5h1JKxmsosrYHMv6jx/9RI3FDr6y8wwmKCV9HbtpOw== X-Received: by 2002:a1c:8312:: with SMTP id f18-v6mr998185wmd.127.1530259982682; Fri, 29 Jun 2018 01:13:02 -0700 (PDT) Received: from [10.0.0.2] ([185.120.124.150]) by smtp.gmail.com with ESMTPSA id e128-v6sm1151090wma.46.2018.06.29.01.13.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Jun 2018 01:13:01 -0700 (PDT) From: Harbs Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Arrays and types Message-Id: Date: Fri, 29 Jun 2018 11:12:58 +0300 To: dev@royale.apache.org X-Mailer: Apple Mail (2.3273) There is something I=E2=80=99ve been struggling with: AS3 does not have =E2=80=9Ctyped=E2=80=9D arrays. The closest it has is = Vectors. The problem with vectors is two-fold. First of all, the cross = compiler uses Language to construct the vector rather than simply = declaring an array. This could probably be fixed though. The second = problem is that it=E2=80=99s awkward converting between arrays and = vectors. This is especially problematic when you want to =E2=80=9Ccast=E2=80= =9D an array retrieved from say JSON to a typed Vector. It=E2=80=99s = also a problem if you want to use Array features such as map and the = like. I=E2=80=99m not sure what the right solution to improving this would be. = Expand Vector to allow arrays and Vectors to be cast as each other? = Create a new =E2=80=9Carray type" declaration (i.e. var arr:String[] =3D = [=E2=80=9Cfoo=E2=80=9D,=E2=80=9Dbaz=E2=80=9D];)? Something else? Thoughts? Harbs