flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lizhi <s...@qq.com>
Subject Re: how remove numcheck
Date Fri, 23 Sep 2016 15:20:25 GMT
and the js is a simple lang ,no need the same of flashruntime.simple is good


------------------ Original ------------------
From: Alex Harui [via Apache Flex Development] <ml-node+s2333347n55292h48@n4.nabble.com>
Date: 周五,9月 23,2016 23:13
To: lizhi <sliz@qq.com>
Subject: Re: how remove numcheck


On 9/22/16, 11:56 PM, "lizhi" <[hidden email]> wrote: 

>the float32array also has this issue. 
>and the Number() are slow in loop 

I could be wrong, but I'm pretty sure the compiler should try to insert a 
coercion there, because otherwise the JS code would behave differently 
than the AS code if there were strings in the array. 

The FalconJX compiler allows certain "directives" like 
@flexjsignorecoercion to control coercions since they can be wasteful. 
The following: 

 * @flexjsignorecoercion Number 
        public function numberarr():void 
  var arr:Array; 
  var n:Number; 
  n = arr[0] as Number; 

was cross-compiled to: 

 * @flexjsignorecoercion Number 
 * @export 
VectorObject.prototype.numberarr = function() { 
  var /** @type {Array} */ arr; 
  var /** @type {number} */ n; 
  n = arr[0]; 

Isn't that what you want? 


  If you reply to this email, your message will be added to the discussion below:

  To unsubscribe from how remove numcheck, click here.

View this message in context: http://apache-flex-development.2333347.n4.nabble.com/how-remove-numcheck-tp55279p55294.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

View raw message