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" <harbs.li...@gmail.com> wrote:

>I think you need “new”…
>
>On Nov 3, 2015, at 9:55 AM, lizhi <s...@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-node+s2333347n4978...@n4.nabble.com>;
>> Date: 2015年11月3日(星期二) 下午3:41
>> To: "lizhi"<s...@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.
>

Reply via email to