incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Omar Gonzalez <omarg.develo...@gmail.com>
Subject Re: [IDEAS] Collections and Generics
Date Fri, 24 Feb 2012 19:28:33 GMT
On Fri, Feb 24, 2012 at 11:19 AM, Alex Harui <aharui@adobe.com> wrote:

>
>
>
> On 2/24/12 11:11 AM, "Omar Gonzalez" <omarg.developer@gmail.com> wrote:
>
> > Then its just a matter
> > of retrieving the first item of the Vector and reflecting its type to
> > create an instance of and return the Vector list of selectedItems.
> IIRC, the issue is the creating and returning a different vector is a loop
> that coerces every item in the vector which is "bad".  There once was a
> plan
> to allow auto-conversion of Vector.<*> but I don't think that happened.
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>
>
Well, selectedItems returns a Vector.<Object> [1] so there must be some
coercion going on somewhere, I just haven't looked at the source for s:List.

[1]
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/List.html#selectedItems

--
Omar Gonzalez
s9tpepper@apache.org
Apache Flex PPMC Member

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message