Long time ago in the galaxy far away I did this:
http://code.google.com/p/e4xu/source/browse/trunk/templates/List.as.fdtthese
are templates that FlashDevelop can process. In a certain sense, they
can be used just the same as vectors are used in AS3 with a certain bonus
of possible inheritance and a
On Fri, Feb 24, 2012 at 11:19 AM, Alex Harui wrote:
>
>
>
> On 2/24/12 11:11 AM, "Omar Gonzalez" 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
On 2/24/12 11:11 AM, "Omar Gonzalez" 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 coer
>
> You
>> might say that List's selectedItems returns a Vector. but then it
>> can't return a Vector.
>>
>
>
I just realized you mentioned selectedItems, I haven't actually tested that
either but that's a good point. If I add code to ensure the source is of
type Vector it shouldn't be difficult t
>
>
> Actually, I was more simply asking about if you have a property or method
> or
> parameter of type VectorCollection.. I thought you couldn't pass
> in
> a VectorCollection of ints or a VectorCollection of strings into a
> VectorCollection of Objects. It was a problem for straight up Vector.
On 2/24/12 10:03 AM, "Omar Gonzalez" wrote:
> I think I just figured out what you were asking, if you mean using the
> VectorCollection for AMF sending/receiving I have not tested that at all. I
> was mainly using VectorCollection for displaying models in List type
> components. I do remember
On 25/02/2012 03:11, Gordon Smith wrote:
hopefully generics will be supported by the Falcon compiler.
Unfortunately, they won't be, at least not in the first release. We're just
working on compiling the existing language faster and in less memory.
As discussed in the recent Flash Runtime white
or.apache.org
Subject: RE: [IDEAS] Collections and Generics
I have a small library of immutable collections (Tuple, OrderedList, HashMap
plus type-safe versions of OrderedList and HashMap) at
https://github.com/DavidArno/AS3Immutable. I'd be more than happy to donate
these if we did want to
> In other words: haXe's generics are "compile-time" checks not runtime
safe.
Same as Java, Same as C++. Of course, that doesn't mean it is good... but
the runtime wasn't built having those things in mind, because you cannot
affect the runtime, that's the only thing you can do.
But, if to be hone
On Fri, Feb 24, 2012 at 9:28 AM, Alex Harui wrote:
>
>
>
> On 2/24/12 8:30 AM, "Omar Gonzalez" wrote:
>
> > I agree with you about having more robust collections. I just wanted to
> > mention I have created a VectorCollection for working with Vector
> objects,
> > you can check it out here: http
On 25/02/2012 02:14, Omar Gonzalez wrote:
I didn't understand that statement either.
Martin, what did you mean by that?
I meant that it is converted to "Object" at compile time. Check the
bytecode of the attached swc. Was shocked when I first saw that! ;)
In other words: haXe's generics are "
On Friday, February 24, 2012, Alex Harui wrote:
>
>
>
> On 2/24/12 8:30 AM, "Omar Gonzalez" >
> wrote:
>
> > I agree with you about having more robust collections. I just wanted to
> > mention I have created a VectorCollection for working with Vector
> objects,
> > you can check it out here: https
On 2/24/12 8:30 AM, "Omar Gonzalez" wrote:
> I agree with you about having more robust collections. I just wanted to
> mention I have created a VectorCollection for working with Vector objects,
> you can check it out here: https://github.com/s9tpepper/VectorTools
I didn't look at the code yet.
On Fri, Feb 24, 2012 at 9:13 AM, David Arno wrote:
> > From: Martin Heidegger [mailto:m...@leichtgewicht.at]
> > Sent: 24 February 2012 16:57
> > Hello David,
> >
> > I guess you don't want to know how haXe implements generics for avm
> bytecode.
> I'm puzzled as to why you assume this to be hone
> From: Martin Heidegger [mailto:m...@leichtgewicht.at]
> Sent: 24 February 2012 16:57
> Hello David,
>
> I guess you don't want to know how haXe implements generics for avm
bytecode.
I'm puzzled as to why you assume this to be honest.
David.
Hello David,
I guess you don't want to know how haXe implements generics for avm
bytecode.
yours
Martin.
> From: Martin Heidegger [mailto:m...@leichtgewicht.at]
> Sent: 24 February 2012 16:51
> ActionScript3 does not support generics.
That's not strictly speaking true. AS3 supports the Vector class after all,
which is a generic class. It understands instantiating an instance of a
generic class. How
Hello Sai,
ActionScript3 does not support generics. You will not be able to
create new "well-performing" basic types like Array. There are many
approaches
around like as3commons[1], as3-collections[2], addicted2flash [3] or
Maashaack [4] but the
performance is not really good.
I once develope
>
> Also having a good set of collections like Map, Set, List, Queues would
> help develop more robust client side applications.
>
> P:S: I'm unaware if adobe has already planned to roll out collections in
> the near future. Its just an Idea!
>
AS3Commons also offers quite an extensive number of c
I have a small library of immutable collections (Tuple, OrderedList, HashMap
plus type-safe versions of OrderedList and HashMap) at
https://github.com/DavidArno/AS3Immutable. I'd be more than happy to donate
these if we did want to build a set of collection classes into the SDK.
They'd probably nee
That's a good start!
On Fri, Feb 24, 2012 at 10:30 AM, Omar Gonzalez
wrote:
> On Fri, Feb 24, 2012 at 8:14 AM, sai pabbathi >wrote:
>
> > Hello All,
> >
> > I've been thinking about creating my own version of collections and
> > Generics for a while now. I'm a java guy and I crave to have Collec
On Fri, Feb 24, 2012 at 8:14 AM, sai pabbathi wrote:
> Hello All,
>
> I've been thinking about creating my own version of collections and
> Generics for a while now. I'm a java guy and I crave to have Collections on
> the client side. Having the collections and generics would not hurt, it
> would
Hello All,
I've been thinking about creating my own version of collections and
Generics for a while now. I'm a java guy and I crave to have Collections on
the client side. Having the collections and generics would not hurt, it
would actually reduce the coding errors, and development time as most o
23 matches
Mail list logo