just quickly, I can see examples:
1 is at [1]
2 is at [2]

1.
https://github.com/apache/royale-asjs/blob/75511afbb9f81c5e69cc55c4e2ae3148e8462fb5/frameworks/projects/Core/src/test/royale/flexUnitTests/language/LanguageTesterTestVector.as#L570
2.
https://github.com/apache/royale-asjs/blob/75511afbb9f81c5e69cc55c4e2ae3148e8462fb5/frameworks/projects/Core/src/test/royale/flexUnitTests/language/LanguageTesterTestVector.as#L450

On Fri, Dec 17, 2021 at 12:18 PM Harbs <harbs.li...@gmail.com> wrote:

> It looks like there’s two ways to instantiate Vectors with values?
>
> 1. var foo:Vector.<Foo> = <Foo>[foo,baz,bar];
> 2. var foo:Vector.<Foo> = Vector.<Foo>([foo,baz,bar]);
>
> 1. https://stackoverflow.com/a/18050638
> 2.
> https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/Vector.html
>
> Do both of these work in Royale?
>
> Harbs

Reply via email to