On 3/2/17, 8:11 AM, "Harbs" <harbs.li...@gmail.com> wrote:

>Interesting.
>
>So this only works with MXML or with ActionScript too?

Just MXML.  We could try to get the compiler to use it when checking
assignments in ActionScript, but I think that there would be cases where
it wouldn't do the right thing since AS allows some forms of automatic
type conversion.  And still, that would only be compile-time.  The Flash
runtime does not use Metadata to guide runtime behavior.  Vector was
introduced to provide runtime support for typed arrays.


>
>I’m wondering if we can use this for typed arrays in externs compiled
>using compc.

ExternC will emit ArrayElementType for certain patterns, but not currently
for the one you ran into.

Thanks,
-Alex

Reply via email to