You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Harbs <ha...@gmail.com> on 2015/11/03 20:03:30 UTC

Re: [FLEXJS] vector error

I was not aware the global Vector function existed. Interesting!

Yes. I do think that this should be pushed for the next release unless more issues pop up. I did not really understand your proposal of swappable emulations, so I cannot comment on that.

Harbs

On Nov 3, 2015, at 6:13 PM, Alex Harui <ah...@adobe.com> wrote:

> Added subject tag.
> 
> Lizhi is correct.  I don’t think we realized the Vector global function
> had different behavior than the Array global function.  It opens a
> question about whether the compiler should generate the “correct” code or
> whether Vector should be implemented in the framework in a way that folks
> can swap in different Vector emulations.  Some folks may want to pay the
> price of some type-checking.
> 
> Figures this would come up after I posted an RC, but since lizhi knows how
> to work with nightly builds I think I want to see what else is found
> before the voting period is up before deciding whether to try to make a
> change for this release.  IMO, it should wait for the next one because we
> should do the extra work of allowing swappable emulations, which would be
> rather risky for this release.
> 
> Thoughts?
> -Alex
> 
> On 11/3/15, 4:37 AM, "Harbs" <ha...@gmail.com> wrote:
> 
>> I think you need “new”…
>> 
>> On Nov 3, 2015, at 9:55 AM, lizhi <sl...@qq.com> wrote:
>> 
>>> var vec:Vector.<Number> = Vector.<Number>([1, 2, 3]);
>>>  alert(vec.length);
>>> I need 3,but get 0
>>> 
>>> 
>>> 
>>> 
>>> ------------------ Original ------------------
>>> From: "Alex Harui [via Apache Flex
>>> Development]"<ml...@n4.nabble.com>;
>>> Date: 2015年11月3日(星期二) 下午3:41
>>> To: "lizhi"<sl...@qq.com>;
>>> Subject: Re: vector error
>>> 
>>> 
>>> 
>>> What output are you getting and what error occurs?
>>> 
>>> -Alex 
>>> 
>>> On 11/2/15, 10:39 PM, "lizhi" <[hidden email]> wrote:
>>> 
>>>> in as3. 
>>>> new Vector.<*>([1,1,1]);
>>>> not the same Vector.<*>([1,1,1]);
>>>> 
>>>> pls try 
>>>> 
>>>> 
>>>> 
>>>> -- 
>>>> View this message in context:
>>>> 
>>>> http://apache-flex-development.2333347.n4.nabble.com/vector-error-tp4977
>>>> 2p
>>>> 49783.html 
>>>> Sent from the Apache Flex Development mailing list archive at
>>>> Nabble.com. 
>>> 
>>> 
>>> 
>>> 
>>> If you reply to this email, your message will be added to the
>>> discussion below:
>>> 
>>> http://apache-flex-development.2333347.n4.nabble.com/vector-error-tp49772
>>> p49784.html 
>>> To unsubscribe from vector error, click here.
>>> NAML
>>> 
>>> 
>>> 
>>> --
>>> View this message in context:
>>> http://apache-flex-development.2333347.n4.nabble.com/vector-error-tp49772
>>> p49785.html
>>> Sent from the Apache Flex Development mailing list archive at
>>> Nabble.com.
>> 
> 


Re: [FLEXJS] vector error

Posted by Harbs <ha...@gmail.com>.
I will try to do this tomorrow. I spent a good chunk of my day today trying to fix a broken website… :-(

On Nov 3, 2015, at 9:18 PM, Alex Harui <ah...@adobe.com> wrote:

>  If you can find time to run the approval
> scripts and vote on the current RC we can get 0.5.0 out the door.


Re: [FLEXJS] vector error

Posted by Alex Harui <ah...@adobe.com>.

On 11/3/15, 11:03 AM, "Harbs" <ha...@gmail.com> wrote:

>I was not aware the global Vector function existed. Interesting!
>
>Yes. I do think that this should be pushed for the next release unless
>more issues pop up. I did not really understand your proposal of
>swappable emulations, so I cannot comment on that.

Funny, I guess the best way to find bugs is to propose an RC.  We also
found an issue with the “new” keyword today as well.  I’ll push on fixes
in case we do decide for another RC, but yes, I think these issues can be
deferred to the next release.  If you can find time to run the approval
scripts and vote on the current RC we can get 0.5.0 out the door.

I’ll post a more detailed proposal about Vector once I finish doing more
investigation.

-Alex